Skip to content

Commit

Permalink
fix(systemtests): wait longer to detect double sign (#23286)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe authored Jan 10, 2025
1 parent 517839b commit 2ab05c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/systemtests/fraud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os"
"path/filepath"
"testing"
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 2ab05c6

Please sign in to comment.