Skip to content

Commit f9ca652

Browse files
Extend testToResultFutureCancellationPropagation baseFuture.await() timeout
1 parent 48adcb8 commit f9ca652

File tree

1 file changed

+1
-1
lines changed
  • java/client/src/test/java/org/signal/libsignal/internal

1 file changed

+1
-1
lines changed

java/client/src/test/java/org/signal/libsignal/internal/AsyncTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class AsyncTests {
117117
val resultFuture = baseFuture.toResultFuture()
118118
assertTrue(resultFuture.cancel(true), "resultFuture should be cancellable")
119119

120-
val throwable = assertFailsWith<CancellationException> { withTimeout(200.milliseconds) { baseFuture.await() } }
120+
val throwable = assertFailsWith<CancellationException> { withTimeout(1000.milliseconds) { baseFuture.await() } }
121121
assertTrue(throwable !is TimeoutCancellationException, "Timed out awaiting baseFuture cancellation")
122122
// We have to wait for the future cancellation to bubble up from the native code before we can check these.
123123
assertTrue(baseFuture.isCancelled, "baseFuture should be cancelled")

0 commit comments

Comments
 (0)