diff options
Diffstat (limited to 'jstests/fail_point')
-rw-r--r-- | jstests/fail_point/fail_point.js | 4 |
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(); |