diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-03 22:16:36 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-03 22:16:36 +0800 |
commit | 98db08c42f30e584dc1ef521b0c73c26d81b9f40 (patch) | |
tree | b94eedd63973eb5121f50885e2fd21a60113c4e4 /accounts | |
parent | cc6c5846e58b56a17395cc0ff7478b03bddfb6d5 (diff) | |
parent | 5aec1d94add9211298a672cd8f3377785519c95e (diff) | |
download | dexon-98db08c42f30e584dc1ef521b0c73c26d81b9f40.tar.gz dexon-98db08c42f30e584dc1ef521b0c73c26d81b9f40.tar.zst dexon-98db08c42f30e584dc1ef521b0c73c26d81b9f40.zip |
Merge pull request #1548 from fjl/accounts-test-deflake
accounts: bump timeout in TestSignRace
Diffstat (limited to 'accounts')
-rw-r--r-- | accounts/accounts_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accounts/accounts_test.go b/accounts/accounts_test.go index 02a255f3e..d7a8a2b85 100644 --- a/accounts/accounts_test.go +++ b/accounts/accounts_test.go @@ -128,7 +128,7 @@ func TestSignRace(t *testing.T) { if err := am.TimedUnlock(a1.Address, "", 15*time.Millisecond); err != nil { t.Fatalf("could not unlock the test account", err) } - end := time.Now().Add(80 * time.Millisecond) + end := time.Now().Add(500 * time.Millisecond) for time.Now().Before(end) { if _, err := am.Sign(a1, testSigData); err == ErrLocked { return @@ -136,6 +136,7 @@ func TestSignRace(t *testing.T) { t.Errorf("Sign error: %v", err) return } + time.Sleep(1 * time.Millisecond) } t.Errorf("Account did not lock within the timeout") } |