summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/configExpand_exec_timeeout.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/configExpand_exec_timeeout.js')
-rw-r--r--jstests/noPassthrough/configExpand_exec_timeeout.js48
1 files changed, 24 insertions, 24 deletions
diff --git a/jstests/noPassthrough/configExpand_exec_timeeout.js b/jstests/noPassthrough/configExpand_exec_timeeout.js
index 1a20d6fbc63..bf9d0cc4de7 100644
--- a/jstests/noPassthrough/configExpand_exec_timeeout.js
+++ b/jstests/noPassthrough/configExpand_exec_timeeout.js
@@ -1,33 +1,33 @@
// Test config file expansion using EXEC.
(function() {
- 'use strict';
+'use strict';
- load('jstests/noPassthrough/libs/configExpand/lib.js');
+load('jstests/noPassthrough/libs/configExpand/lib.js');
- assert.eq(runNonMongoProgram.apply(null, makeReflectionCmd('12345', {sleep: 0}).split(" ")), 0);
+assert.eq(runNonMongoProgram.apply(null, makeReflectionCmd('12345', {sleep: 0}).split(" ")), 0);
- // Sleep 10 seconds during request.
- configExpandSuccess({
- setParameter: {
- scramIterationCount: {__exec: makeReflectionCmd('12345', {sleep: 10})},
- }
- });
+// Sleep 10 seconds during request.
+configExpandSuccess({
+ setParameter: {
+ scramIterationCount: {__exec: makeReflectionCmd('12345', {sleep: 10})},
+ }
+});
- // Sleep 40 seconds during request, with default 30 second timeout.
- configExpandFailure({
- setParameter: {
- scramIterationCount: {__exec: makeReflectionCmd('12345', {sleep: 40})},
- }
- },
- /Timeout expired/);
+// Sleep 40 seconds during request, with default 30 second timeout.
+configExpandFailure({
+ setParameter: {
+ scramIterationCount: {__exec: makeReflectionCmd('12345', {sleep: 40})},
+ }
+},
+ /Timeout expired/);
- // Sleep 10 seconds during request, with custom 5 second timeout.
- configExpandFailure({
- setParameter: {
- scramIterationCount: {__exec: makeReflectionCmd('12345', {sleep: 10})},
- }
- },
- /Timeout expired/,
- {configExpandTimeoutSecs: 5});
+// Sleep 10 seconds during request, with custom 5 second timeout.
+configExpandFailure({
+ setParameter: {
+ scramIterationCount: {__exec: makeReflectionCmd('12345', {sleep: 10})},
+ }
+},
+ /Timeout expired/,
+ {configExpandTimeoutSecs: 5});
})();