From 2ab05c67977f814f9686fb678d6b1b29c56729da Mon Sep 17 00:00:00 2001 From: mmsqe Date: Fri, 10 Jan 2025 18:36:45 +0800 Subject: [PATCH] fix(systemtests): wait longer to detect double sign (#23286) --- tests/systemtests/fraud_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/systemtests/fraud_test.go b/tests/systemtests/fraud_test.go index a4c0b7875d8e..2d2b8ae38cfa 100644 --- a/tests/systemtests/fraud_test.go +++ b/tests/systemtests/fraud_test.go @@ -7,6 +7,7 @@ import ( "os" "path/filepath" "testing" + "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -43,8 +44,8 @@ func TestValidatorDoubleSign(t *testing.T) { // let's wait some blocks to have evidence and update persisted var nodePowerAfter int64 = -1 - for i := 0; i < 30; i++ { - systest.Sut.AwaitNextBlock(t) + for i := 0; i < 100; i++ { + systest.Sut.AwaitNextBlock(t, 6*time.Second) if nodePowerAfter = systest.QueryCometValidatorPower(rpc, pkBz); nodePowerAfter == 0 { break }