Skip to content

Commit

Permalink
xds: Increase timeouts in XdsClientFederationTest
Browse files Browse the repository at this point in the history
`isolatedResourceDeletions()` has failed with a timeout waiting on
onChanged when running under TSAN. TSAN can slow things down, so let's
increase the timeout to ensure it isn't just timeout flake.
  • Loading branch information
ejona86 committed Feb 27, 2024
1 parent c61fe69 commit 9b53bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xds/src/test/java/io/grpc/xds/XdsClientFederationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ public void isolatedResourceDeletions() {
xdsClient.watchXdsResource(XdsListenerResource.getInstance(),
"xdstp://server-one/envoy.config.listener.v3.Listener/test-server", mockDirectPathWatcher);

verify(mockWatcher, timeout(2000)).onChanged(
verify(mockWatcher, timeout(10000)).onChanged(
LdsUpdate.forApiListener(
HttpConnectionManager.forRdsName(0, "route-config.googleapis.com", ImmutableList.of(
new NamedFilterConfig("terminal-filter", RouterFilter.ROUTER_CONFIG)))));
verify(mockDirectPathWatcher, timeout(2000)).onChanged(
verify(mockDirectPathWatcher, timeout(10000)).onChanged(
LdsUpdate.forApiListener(
HttpConnectionManager.forRdsName(0, "route-config.googleapis.com", ImmutableList.of(
new NamedFilterConfig("terminal-filter", RouterFilter.ROUTER_CONFIG)))));
Expand Down

0 comments on commit 9b53bca

Please sign in to comment.