fix(systemtests): wait longer to detect double sign (#23286)

This commit is contained in:
mmsqe 2025-01-10 18:36:45 +08:00 committed by GitHub
parent 517839bc96
commit 2ab05c6797
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}