summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/reporter_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/reporter_test.cpp')
-rw-r--r--src/mongo/db/repl/reporter_test.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/repl/reporter_test.cpp b/src/mongo/db/repl/reporter_test.cpp
index f0261d64f5f..97485f030e5 100644
--- a/src/mongo/db/repl/reporter_test.cpp
+++ b/src/mongo/db/repl/reporter_test.cpp
@@ -248,13 +248,13 @@ TEST_F(ReporterTestNoTriggerAtSetUp, InvalidConstruction) {
Reporter::PrepareReplSetUpdatePositionCommandFn(),
HostAndPort("h1"),
Milliseconds(1000)),
- UserException);
+ AssertionException);
// null TaskExecutor
ASSERT_THROWS_WHAT(
Reporter(
nullptr, prepareReplSetUpdatePositionCommandFn, HostAndPort("h1"), Milliseconds(1000)),
- UserException,
+ AssertionException,
"null task executor");
// null PrepareReplSetUpdatePositionCommandFn
@@ -262,7 +262,7 @@ TEST_F(ReporterTestNoTriggerAtSetUp, InvalidConstruction) {
Reporter::PrepareReplSetUpdatePositionCommandFn(),
HostAndPort("h1"),
Milliseconds(1000)),
- UserException,
+ AssertionException,
"null function to create replSetUpdatePosition command object");
// empty HostAndPort
@@ -270,21 +270,21 @@ TEST_F(ReporterTestNoTriggerAtSetUp, InvalidConstruction) {
prepareReplSetUpdatePositionCommandFn,
HostAndPort(),
Milliseconds(1000)),
- UserException,
+ AssertionException,
"target name cannot be empty");
// zero keep alive interval.
ASSERT_THROWS_WHAT(
Reporter(
&getExecutor(), prepareReplSetUpdatePositionCommandFn, HostAndPort("h1"), Seconds(-1)),
- UserException,
+ AssertionException,
"keep alive interval must be positive");
// negative keep alive interval.
ASSERT_THROWS_WHAT(
Reporter(
&getExecutor(), prepareReplSetUpdatePositionCommandFn, HostAndPort("h1"), Seconds(-1)),
- UserException,
+ AssertionException,
"keep alive interval must be positive");
}