Skip to content

Commit 0d031aa

Browse files
committed
remove second request verification check
1 parent fcea6c0 commit 0d031aa

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

xds/internal/xdsclient/tests/lds_watchers_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,15 +1046,6 @@ func (s) TestLDSWatch_ResourceCaching_NACKError(t *testing.T) {
10461046
if gotErr == nil || !strings.Contains(gotErr.Error(), wantListenerNACKErr) {
10471047
t.Fatalf("update received with error: %v, want %q", gotErr, wantListenerNACKErr)
10481048
}
1049-
// No request should get sent out as part of this watch.
1050-
sCtx, sCancel := context.WithTimeout(ctx, defaultTestShortTimeout)
1051-
defer sCancel()
1052-
select {
1053-
case <-sCtx.Done():
1054-
case <-secondRequestReceived.Done():
1055-
t.Fatal("xdsClient sent out request instead of using update from cache")
1056-
default:
1057-
}
10581049
}
10591050

10601051
// TestLDSWatch_PartialValid covers the case where a response from the

0 commit comments

Comments
 (0)