diff options
Diffstat (limited to 'src/mongo/db/error_labels_test.cpp')
-rw-r--r-- | src/mongo/db/error_labels_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/error_labels_test.cpp b/src/mongo/db/error_labels_test.cpp index 07b597ffaf6..aa7fa88aefe 100644 --- a/src/mongo/db/error_labels_test.cpp +++ b/src/mongo/db/error_labels_test.cpp @@ -69,6 +69,12 @@ TEST(IsTransientTransactionErrorTest, TenantMigrationAbortedIsTransient) { false /* isCommitOrAbort */)); } +TEST(IsTransientTransactionErrorTest, ShardCannotRefreshDueToLocksHeldIsTransient) { + ASSERT_TRUE(isTransientTransactionError(ErrorCodes::ShardCannotRefreshDueToLocksHeld, + false /* hasWriteConcernError */, + false /* isCommitOrAbort */)); +} + TEST(IsTransientTransactionErrorTest, ShardInvalidatedForTargetingIsTransient) { ASSERT_TRUE(isTransientTransactionError(ErrorCodes::ShardInvalidatedForTargeting, false /* hasWriteConcernError */, |