Skip to content

Commit 98db08c

Browse files
committed
Merge pull request ethereum#1548 from fjl/accounts-test-deflake
accounts: bump timeout in TestSignRace
2 parents cc6c584 + 5aec1d9 commit 98db08c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

accounts/accounts_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,15 @@ func TestSignRace(t *testing.T) {
128128
if err := am.TimedUnlock(a1.Address, "", 15*time.Millisecond); err != nil {
129129
t.Fatalf("could not unlock the test account", err)
130130
}
131-
end := time.Now().Add(80 * time.Millisecond)
131+
end := time.Now().Add(500 * time.Millisecond)
132132
for time.Now().Before(end) {
133133
if _, err := am.Sign(a1, testSigData); err == ErrLocked {
134134
return
135135
} else if err != nil {
136136
t.Errorf("Sign error: %v", err)
137137
return
138138
}
139+
time.Sleep(1 * time.Millisecond)
139140
}
140141
t.Errorf("Account did not lock within the timeout")
141142
}

0 commit comments

Comments
 (0)