Skip to content

Commit

Permalink
xds: update RPC timeout in blackhole case (#5126)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanli-ml committed Jan 19, 2022
1 parent aad573d commit eb6ff1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interop/grpclb_fallback/client_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func waitForFallbackAndDoRPCs(client testgrpc.TestServiceClient, fallbackDeadlin
fallbackRetryCount := 0
fellBack := false
for time.Now().Before(fallbackDeadline) {
g := doRPCAndGetPath(client, 1*time.Second)
g := doRPCAndGetPath(client, 20*time.Second)
if g == testpb.GrpclbRouteType_GRPCLB_ROUTE_TYPE_FALLBACK {
infoLog.Println("Made one successul RPC to a fallback. Now expect the same for the rest.")
fellBack = true
Expand Down Expand Up @@ -166,7 +166,7 @@ func doFastFallbackBeforeStartup() {

func doSlowFallbackBeforeStartup() {
runCmd(*blackholeLBAndBackendAddrsCmd)
fallbackDeadline := time.Now().Add(20 * time.Second)
fallbackDeadline := time.Now().Add(60 * time.Second)
conn := createTestConn()
defer conn.Close()
client := testgrpc.NewTestServiceClient(conn)
Expand Down

0 comments on commit eb6ff1a

Please sign in to comment.