Skip to content

Commit

Permalink
Bring down the wait to 30 seconds again
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Jun 13, 2024
1 parent ce7194d commit 3773bf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/soroban-rpc/internal/test/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (i *Test) waitForRPC() {
i.t.Log("Waiting for RPC to be healthy...")

var result methods.HealthCheckResult
for t := 120; t >= 0; t-- {
for t := 30; t >= 0; t-- {
err := i.rpcClient.CallResult(context.Background(), "getHealth", nil, &result)
if err == nil {
if result.Status == "healthy" {
Expand All @@ -260,7 +260,7 @@ func (i *Test) waitForRPC() {
buf := make([]byte, 1<<16)
stackSize := runtime.Stack(buf, true)
log.Printf("%s\n", string(buf[0:stackSize]))
i.t.Fatal("RPC failed to get healthy in 120 seconds")
i.t.Fatal("RPC failed to get healthy in 30 seconds")
}

func (i *Test) createRPCContainerMountDir(rpcConfig map[string]string) string {
Expand Down

0 comments on commit 3773bf8

Please sign in to comment.