We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 391c317 commit 4b9a565Copy full SHA for 4b9a565
1 file changed
driver-sync/src/test/functional/com/mongodb/client/RetryableWritesProseTest.java
@@ -482,6 +482,10 @@ private static void errorPropagationAfterEncounteringMultipleErrors(
482
Predicate<CommandEvent> configureFailPointEventMatcher = event -> {
483
if (event instanceof CommandFailedEvent) {
484
CommandFailedEvent commandFailedEvent = (CommandFailedEvent) event;
485
+ if (commandFailedEvent.getCommandName().equals("drop")) {
486
+ // this code may run against MongoDB 6, where dropping a nonexistent collection results in an error
487
+ return false;
488
+ }
489
MongoException cause = assertInstanceOf(MongoException.class, commandFailedEvent.getThrowable());
490
assertEquals(91, cause.getCode());
491
return true;
0 commit comments