Skip to content

Commit d7b3f93

Browse files
authored
cdsbalancer: Increase timeout for test (grpc#8889)
Fixes: grpc#8883 This change doubles the timeout for `EDS_MultipleLocalities` as the test sends around 5000 RPCs and may time out on slow machines. RELEASE NOTES: N/A
1 parent 7860144 commit d7b3f93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/xds/balancer/cdsbalancer/e2e_test/eds_impl_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ func (s) TestEDS_MultipleLocalities(t *testing.T) {
254254
Backends: []e2e.BackendOptions{{Ports: []uint32{ports[1]}}},
255255
},
256256
})
257-
// Use a 10 second timeout since validating WRR requires sending 500+ unary
257+
// Use a 20 second timeout since validating WRR requires sending 500+ unary
258258
// RPCs.
259-
ctx, cancel := context.WithTimeout(context.Background(), 2*defaultTestTimeout)
259+
ctx, cancel := context.WithTimeout(context.Background(), 20*time.Second)
260260
defer cancel()
261261
if err := managementServer.Update(ctx, resources); err != nil {
262262
t.Fatal(err)

0 commit comments

Comments
 (0)