summaryrefslogtreecommitdiff
path: root/jstests/fail_point
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2012-12-10 19:11:19 -0500
committerSpencer T Brody <spencer@10gen.com>2012-12-14 13:05:54 -0500
commit12bab3dae57f9ba716f3bdcc059518d50dd80004 (patch)
treef2478b47d16f0911b36172f476813be57880270c /jstests/fail_point
parent1c4fb029c1c60459d423f4ad56a1e0841cacdc83 (diff)
downloadmongo-12bab3dae57f9ba716f3bdcc059518d50dd80004.tar.gz
SERVER-7122 Put failPoint command behind --enableTestCommands flag instead of --enableFaultInjection flag
Diffstat (limited to 'jstests/fail_point')
-rw-r--r--jstests/fail_point/fail_point.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/jstests/fail_point/fail_point.js b/jstests/fail_point/fail_point.js
index 380fb51d345..42e7b1ebd9c 100644
--- a/jstests/fail_point/fail_point.js
+++ b/jstests/fail_point/fail_point.js
@@ -60,33 +60,12 @@ var runTest = function(adminDB) {
};
var conn = MongoRunner.runMongod({ port: 29000 });
-
-// configureFailPoint is only available if run with --enableFaultInjection
-assert.commandFailed(conn.getDB('admin').runCommand({ configureFailPoint: 'dummy' }));
-
-MongoRunner.stopMongod(conn.port);
-conn = MongoRunner.runMongod({ enableFaultInjection: '', port: conn.port, verbose: 6 });
-
runTest(conn.getDB('admin'));
-
MongoRunner.stopMongod(conn.port);
///////////////////////////////////////////////////////////
// Test mongos
var st = new ShardingTest({ shards: 1 });
-
-adminDB = st.s.getDB('admin');
-
-// configureFailPoint is only available if run with --enableFaultInjection
-// Note: mongos asserts when command is not found, unlike mongod
-assert.throws(function() {
- adminDB.runCommand({ configureFailPoint: 'dummy' });
-});
-
-st.stop();
-
-st = new ShardingTest({ shards: 1, other: { mongosOptions: { enableFaultInjection: '' }}});
runTest(st.s.getDB('admin'));
-
st.stop();