summaryrefslogtreecommitdiff
path: root/src/mongo/db/server_parameters_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/server_parameters_test.cpp')
-rw-r--r--src/mongo/db/server_parameters_test.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/server_parameters_test.cpp b/src/mongo/db/server_parameters_test.cpp
index 212b31dbacc..c2a6f56156c 100644
--- a/src/mongo/db/server_parameters_test.cpp
+++ b/src/mongo/db/server_parameters_test.cpp
@@ -30,6 +30,7 @@
#include "mongo/unittest/unittest.h"
+#include "mongo/db/operation_context_noop.h"
#include "mongo/db/server_parameters.h"
namespace mongo {
@@ -68,7 +69,10 @@ namespace mongo {
ASSERT_EQUALS( "c", v[2] );
BSONObjBuilder b;
- vv.append( b, vv.name() );
+
+ OperationContextNoop txn;
+ vv.append(&txn, b, vv.name());
+
BSONObj y = b.obj();
ASSERT( x.firstElement().woCompare( y.firstElement(), false ) == 0 );