Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Jun 13, 2024
1 parent 9e581ab commit c624ce1
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 @@ -242,7 +242,7 @@ func (i *Test) waitForRPC() {
defer client.Close()

var result methods.HealthCheckResult
for t := 30; t >= 0; t-- {
for t := 120; t >= 0; t-- {
err := client.CallResult(context.Background(), "getHealth", nil, &result)
if err == nil {
if result.Status == "healthy" {
Expand All @@ -258,7 +258,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 30 seconds")
i.t.Fatal("RPC failed to get healthy in 120 seconds")
}

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

0 comments on commit c624ce1

Please sign in to comment.