We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc6c584 + 5aec1d9 commit 98db08cCopy full SHA for 98db08c
accounts/accounts_test.go
@@ -128,14 +128,15 @@ func TestSignRace(t *testing.T) {
128
if err := am.TimedUnlock(a1.Address, "", 15*time.Millisecond); err != nil {
129
t.Fatalf("could not unlock the test account", err)
130
}
131
- end := time.Now().Add(80 * time.Millisecond)
+ end := time.Now().Add(500 * time.Millisecond)
132
for time.Now().Before(end) {
133
if _, err := am.Sign(a1, testSigData); err == ErrLocked {
134
return
135
} else if err != nil {
136
t.Errorf("Sign error: %v", err)
137
138
139
+ time.Sleep(1 * time.Millisecond)
140
141
t.Errorf("Account did not lock within the timeout")
142
0 commit comments