diff --git a/gno.land/pkg/integration/testing_integration.go b/gno.land/pkg/integration/testing_integration.go index be87ea1135a..d44a1f220a0 100644 --- a/gno.land/pkg/integration/testing_integration.go +++ b/gno.land/pkg/integration/testing_integration.go @@ -10,6 +10,7 @@ import ( "strings" "sync" "testing" + "time" "github.com/gnolang/gno/gno.land/pkg/gnoland" "github.com/gnolang/gno/tm2/pkg/bft/config" @@ -133,6 +134,12 @@ func SetupGnolandTestScript(t *testing.T, txtarDir string) testscript.Params { } }) + select { + case <-time.After(time.Second * 6): + ts.Fatalf("timeout while waiting for the node to start") + case <-waitForNodeReadiness(node): // ok + } + // Register cleanup. nodes[sid] = &testNode{ Node: node,