Skip to content

Commit

Permalink
internal: increase timeout non timeout test in xds/client/v2 (#4006)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl committed Nov 2, 2020
1 parent 4e179b8 commit 15ae9fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions xds/internal/client/v2/client_test.go
Expand Up @@ -609,10 +609,8 @@ func (s) TestV2ClientRetriesAfterBrokenStream(t *testing.T) {
fakeServer.XDSResponseChan <- &fakeserver.Response{Err: errors.New("RPC error")}
t.Log("Bad LDS response pushed to fakeServer...")

sCtx, sCancel := context.WithTimeout(context.Background(), defaultTestShortTimeout)
defer sCancel()
val, err := fakeServer.XDSRequestChan.Receive(sCtx)
if err == context.DeadlineExceeded {
val, err := fakeServer.XDSRequestChan.Receive(ctx)
if err != nil {
t.Fatalf("Timeout expired when expecting LDS update")
}
gotRequest := val.(*fakeserver.Request)
Expand Down

0 comments on commit 15ae9fc

Please sign in to comment.