Skip to content

Commit

Permalink
Fix a flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhoon committed May 13, 2022
1 parent c399ece commit af45d0b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -96,8 +96,8 @@ void compositeEndpointGroup() {
.isCompletedWithValue(endpoint);

final EndpointGroup composed = EndpointGroup.of(mockEndpointGroup1, mockEndpointGroup2);
result = composed.select(ctx, CommonPools.blockingTaskExecutor());
final Stopwatch stopwatch = Stopwatch.createStarted();
result = composed.select(ctx, CommonPools.blockingTaskExecutor());
assertThat(result.join()).isNull();
assertThat(stopwatch.elapsed())
.isGreaterThanOrEqualTo(Duration.ofMillis(expectedTimeout))
Expand Down

0 comments on commit af45d0b

Please sign in to comment.