summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression_context_test.cpp
diff options
context:
space:
mode:
authorLeonardo Menti <leonardo.menti@mongodb.com>2022-07-08 14:24:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-12 15:37:57 +0000
commitf3fb3ba01807ef304fb374223095a5fd01126f51 (patch)
tree2fb0aad54ecf4662a7197466dbfeeacf2d6762d9 /src/mongo/db/pipeline/expression_context_test.cpp
parent131c84d87f754210993c334b4825c69f042ee776 (diff)
downloadmongo-f3fb3ba01807ef304fb374223095a5fd01126f51.tar.gz
SERVER-66760 Add ASSERT_DOES_NOT_THROW to unittest assertions
Diffstat (limited to 'src/mongo/db/pipeline/expression_context_test.cpp')
-rw-r--r--src/mongo/db/pipeline/expression_context_test.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/pipeline/expression_context_test.cpp b/src/mongo/db/pipeline/expression_context_test.cpp
index b105dce531b..2ff0ef20b1e 100644
--- a/src/mongo/db/pipeline/expression_context_test.cpp
+++ b/src/mongo/db/pipeline/expression_context_test.cpp
@@ -39,15 +39,6 @@
#include "mongo/db/vector_clock_mutable.h"
#include "mongo/unittest/unittest.h"
-#define ASSERT_DOES_NOT_THROW(EXPRESSION) \
- try { \
- EXPRESSION; \
- } catch (const AssertionException& e) { \
- str::stream err; \
- err << "Threw an exception incorrectly: " << e.toString(); \
- ::mongo::unittest::TestAssertionFailure(__FILE__, __LINE__, err).stream(); \
- }
-
namespace mongo {
namespace {