From 22a1da1c652d315a1875c46fdf9cec7f4a60d2e6 Mon Sep 17 00:00:00 2001 From: Halimao <1065621723@qq.com> Date: Tue, 25 Jun 2024 12:04:28 +0800 Subject: [PATCH] fix: reduce test round to fix the flaky test --- accounts/keystore/keystore_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/keystore/keystore_test.go b/accounts/keystore/keystore_test.go index 7f541ddfed..d2d52b1b3f 100644 --- a/accounts/keystore/keystore_test.go +++ b/accounts/keystore/keystore_test.go @@ -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("")