From 4698806ecab4976b1d228e831661e4c2a3e5be56 Mon Sep 17 00:00:00 2001 From: yajianggroup Date: Tue, 23 Sep 2025 15:55:51 +0800 Subject: [PATCH] rpc: using testing.B.Loop Signed-off-by: yajianggroup --- rpc/subscription_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/subscription_test.go b/rpc/subscription_test.go index cd44d219de..f115641de5 100644 --- a/rpc/subscription_test.go +++ b/rpc/subscription_test.go @@ -259,8 +259,8 @@ func BenchmarkNotify(b *testing.B) { ParentHash: common.HexToHash("0x01"), Number: big.NewInt(100), } - b.ResetTimer() - for i := 0; i < b.N; i++ { + + for b.Loop() { notifier.Notify(id, msg) } }