summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/clienttests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/clienttests.cpp')
-rw-r--r--src/mongo/dbtests/clienttests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/dbtests/clienttests.cpp b/src/mongo/dbtests/clienttests.cpp
index c38910dfce2..31744d6767d 100644
--- a/src/mongo/dbtests/clienttests.cpp
+++ b/src/mongo/dbtests/clienttests.cpp
@@ -377,7 +377,8 @@ public:
DBDirectClient db(&opCtx);
db.createIndex(ns(), IndexSpec().addKey("aField"));
- ASSERT_THROWS(db.createIndex(ns(), IndexSpec().addKey("aField").unique()), UserException);
+ ASSERT_THROWS(db.createIndex(ns(), IndexSpec().addKey("aField").unique()),
+ AssertionException);
}
};