summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/jsobjtests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r--src/mongo/dbtests/jsobjtests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp
index a02f611fe1b..b670cab1dae 100644
--- a/src/mongo/dbtests/jsobjtests.cpp
+++ b/src/mongo/dbtests/jsobjtests.cpp
@@ -2041,7 +2041,7 @@ public:
void good(BSONObj o) {
if (o.storageValidEmbedded().isOK())
return;
- throw AssertionException(12528, (string) "should be ok for storage:" + o.toString());
+ uasserted(12528, (string) "should be ok for storage:" + o.toString());
}
void bad(string s) {
@@ -2051,7 +2051,7 @@ public:
void bad(BSONObj o) {
if (!o.storageValidEmbedded().isOK())
return;
- throw AssertionException(12529, (string) "should NOT be ok for storage:" + o.toString());
+ uasserted(12529, (string) "should NOT be ok for storage:" + o.toString());
}
void run() {