File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
driver-sync/src/test/functional/com/mongodb/client/unified Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -509,6 +509,12 @@ public TestApplicator when(final Supplier<Boolean> precondition) {
509509 return this ;
510510 }
511511
512+ /**
513+ * The modification, if it is a RETRY, will only be applied when the
514+ * failure message contains the provided message fragment. If an
515+ * {@code AssertionFailedError} occurs, and has a cause, the cause's
516+ * message will be checked. Otherwise, the throwable will be checked.
517+ */
512518 public TestApplicator whenFailureContains (final String messageFragment ) {
513519 this .matchesThrowable = (final Throwable e ) -> {
514520 // inspect the cause for failed assertions with a cause
@@ -546,11 +552,15 @@ public enum Modifier {
546552 */
547553 SKIP ,
548554 /**
549- * Retry the test on failure.
555+ * Ignore results and retry the test on failure. Will not repeat the
556+ * test if the test succeeds. Multiple copies of the test are used to
557+ * facilitate retries.
550558 */
551559 RETRY ,
552560 /**
553- * Retry the test multiple times, without ignoring failures.
561+ * The test will be retried multiple times, without the results being
562+ * ignored. This is a helper that can be used, in patches, to check
563+ * if certain tests are (still) flaky.
554564 */
555565 FORCE_FLAKY ,
556566 }
You can’t perform that action at this time.
0 commit comments