summaryrefslogtreecommitdiff
path: root/jstests/fail_point
diff options
context:
space:
mode:
authorCheahuychou Mao <cheahuychou.mao@mongodb.com>2019-10-31 13:35:41 +0000
committerevergreen <evergreen@mongodb.com>2019-10-31 13:35:41 +0000
commitfd7aaa92a2e3309980689e99125eead70e7c0317 (patch)
treeca5cd9b0e5df7f2bb107f098ac82e26e4c1b585a /jstests/fail_point
parent8e9a8b5552ae078e1890ec319909b7268adcfaac (diff)
downloadmongo-fd7aaa92a2e3309980689e99125eead70e7c0317.tar.gz
SERVER-44310 Make waitForFailPoint command require maxTimeMS
Diffstat (limited to 'jstests/fail_point')
-rw-r--r--jstests/fail_point/fail_point.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/fail_point/fail_point.js b/jstests/fail_point/fail_point.js
index 3355e07d435..cede99acce7 100644
--- a/jstests/fail_point/fail_point.js
+++ b/jstests/fail_point/fail_point.js
@@ -89,6 +89,10 @@ function runTest(adminDB) {
maxTimeMS: 10
}),
ErrorCodes.MaxTimeMSExpired);
+
+ // Test that waitForFailPoint throws an error when maxTimeMS is not provided.
+ assert.commandFailedWithCode(adminDB.adminCommand({waitForFailPoint: "dummy", timesEntered: 1}),
+ 40414);
}
var conn = MongoRunner.runMongod();