Skip to content

Commit d1ee54d

Browse files
Copilotmykaul
andcommitted
Fix test to match actual exception propagation behavior
Co-authored-by: mykaul <4655593+mykaul@users.noreply.github.com>
1 parent c5ee1fb commit d1ee54d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

core/src/test/java/com/datastax/oss/driver/internal/core/util/concurrent/CompletableFuturesTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public void should_propagate_exception_with_timeout() {
7171
RuntimeException error = new RuntimeException("test error");
7272
future.completeExceptionally(error);
7373
assertThatThrownBy(() -> CompletableFutures.getUninterruptibly(future, Duration.ofSeconds(1)))
74-
.isInstanceOf(DriverExecutionException.class)
75-
.hasCause(error);
74+
.isEqualTo(error);
7675
}
7776
}

0 commit comments

Comments
 (0)