fix: reduce test round to fix the flaky test

This commit is contained in:
Halimao 2024-06-25 12:04:28 +08:00
parent cef3a9a762
commit 22a1da1c65
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ func TestWalletNotifications(t *testing.T) {
live = make(map[common.Address]accounts.Account)
wantEvents []walletEvent
)
for i := 0; i < 1024; i++ {
for i := 0; i < 500; i++ {
if create := len(live) == 0 || rand.Int()%4 > 0; create {
// Add a new account and ensure wallet notifications arrives
account, err := ks.NewAccount("")