Skip to content

Commit 9362105

Browse files
authored
Handling flaky test - CompletableFutureTest#testCancelBeforeStart (#2459)
1 parent 4e2000e commit 9362105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apm-agent-core/src/test/java/co/elastic/apm/agent/util/CompletableFutureTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void reset() {
6969
void testCancelBeforeStart() {
7070
final CompletableFuture<Object> completableFuture = new CompletableFuture<>();
7171
for (int i = 0; i < NUM_THREADS; i++) {
72-
scheduledExecutorService.schedule(new CompletableFutureTester(completableFuture, 5), 200, TimeUnit.MILLISECONDS);
72+
scheduledExecutorService.schedule(new CompletableFutureTester(completableFuture, 5), 300, TimeUnit.MILLISECONDS);
7373
}
7474
assertThat(completableFuture.cancel(false)).isTrue();
7575
assertThat(completableFuture.cancel(false)).isFalse();

0 commit comments

Comments
 (0)