fix: reduce test round to fix the flaky test

pull/30053/head
Halimao 5 months ago
parent cef3a9a762
commit 22a1da1c65
  1. 2
      accounts/keystore/keystore_test.go

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

Loading…
Cancel
Save