Merge pull request #717 from jpmorganchase/fix/go-test

whisper test: reduce the number of nodes in TestSimulation
This commit is contained in:
Samer Falah 2019-05-20 13:40:30 -04:00 committed by GitHub
commit 5637f7ad58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ var keys = []string{
"7184c1701569e3a4c4d2ddce691edd983b81e42e09196d332e1ae2f1e062cff4", "7184c1701569e3a4c4d2ddce691edd983b81e42e09196d332e1ae2f1e062cff4",
} }
const NumNodes = 16 // must not exceed the number of keys (32) const NumNodes = 3 // must not exceed the number of keys (32)
type TestData struct { type TestData struct {
counter [NumNodes]int counter [NumNodes]int

View File

@ -525,7 +525,7 @@ func TestExpiry(t *testing.T) {
} }
// wait till expired or timeout // wait till expired or timeout
for j := 0; j < 20; j++ { for j := 0; j < 50; j++ {
time.Sleep(100 * time.Millisecond) time.Sleep(100 * time.Millisecond)
if len(w.Envelopes()) == 0 { if len(w.Envelopes()) == 0 {
expired = true expired = true