diff options
author | Matt Diener <matt.diener@mongodb.com> | 2022-07-29 12:30:03 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-29 13:04:18 +0000 |
commit | 78f116db0004bdb17bdaecaf9702af2081f165ef (patch) | |
tree | 582ca7c20f72e4c9a90540b9ba2e5b9244d26420 /src/mongo/client | |
parent | f0818c2c2c7745c16a8c981bcbc289aac5e619f6 (diff) | |
download | mongo-78f116db0004bdb17bdaecaf9702af2081f165ef.tar.gz |
SERVER-67606 replace instances of ErrorCategory::Interruption in tests
Diffstat (limited to 'src/mongo/client')
-rw-r--r-- | src/mongo/client/remote_command_retry_scheduler_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/client/remote_command_retry_scheduler_test.cpp b/src/mongo/client/remote_command_retry_scheduler_test.cpp index ffc66be2ffe..c863bcf65b8 100644 --- a/src/mongo/client/remote_command_retry_scheduler_test.cpp +++ b/src/mongo/client/remote_command_retry_scheduler_test.cpp @@ -189,13 +189,13 @@ TEST_F(RemoteCommandRetrySchedulerTest, MakeSingleShotRetryPolicy) { } TEST_F(RemoteCommandRetrySchedulerTest, MakeRetryPolicy) { - auto policy = RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::Interruption>( + auto policy = RemoteCommandRetryScheduler::makeRetryPolicy<ErrorCategory::WriteConcernError>( 5U, Milliseconds(100)); ASSERT_EQUALS(5U, policy->getMaximumAttempts()); ASSERT_EQUALS(Milliseconds(100), policy->getMaximumResponseElapsedTotal()); for (int i = 0; i < int(ErrorCodes::MaxError); ++i) { auto error = ErrorCodes::Error(i); - if (ErrorCodes::isA<ErrorCategory::Interruption>(error)) { + if (ErrorCodes::isA<ErrorCategory::WriteConcernError>(error)) { ASSERT_TRUE(policy->shouldRetryOnError(error)); continue; } |