Skip to content

Commit

Permalink
Fix flakey JaegerRemoteSamplerGrpcNettyTest (#5385)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg authored Apr 17, 2023
1 parent da38225 commit fb3dce4
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ void internal_error_server_response() {
JaegerRemoteSampler.builder()
.setChannel(managedChannel())
.setServiceName(SERVICE_NAME)
.setPollingInterval(50, TimeUnit.MILLISECONDS)
// Make sure only polls once.
.setPollingInterval(500, TimeUnit.SECONDS)
.build()) {
assertThat(sampler).extracting("delegate").isInstanceOf(UpstreamGrpcService.class);

Expand All @@ -272,7 +273,8 @@ void unavailable_error_server_response() {
JaegerRemoteSampler.builder()
.setChannel(managedChannel())
.setServiceName(SERVICE_NAME)
.setPollingInterval(50, TimeUnit.MILLISECONDS)
// Make sure only polls once.
.setPollingInterval(500, TimeUnit.SECONDS)
.build()) {
assertThat(sampler).extracting("delegate").isInstanceOf(UpstreamGrpcService.class);

Expand All @@ -296,7 +298,8 @@ void unimplemented_error_server_response() {
JaegerRemoteSampler.builder()
.setChannel(managedChannel())
.setServiceName(SERVICE_NAME)
.setPollingInterval(50, TimeUnit.MILLISECONDS)
// Make sure only polls once.
.setPollingInterval(500, TimeUnit.SECONDS)
.build()) {
assertThat(sampler).extracting("delegate").isInstanceOf(UpstreamGrpcService.class);

Expand Down

0 comments on commit fb3dce4

Please sign in to comment.