summaryrefslogtreecommitdiff
path: root/jstests/core/read_after_optime.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/read_after_optime.js')
-rw-r--r--jstests/core/read_after_optime.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/jstests/core/read_after_optime.js b/jstests/core/read_after_optime.js
index 33c5594d742..15ca380de47 100644
--- a/jstests/core/read_after_optime.js
+++ b/jstests/core/read_after_optime.js
@@ -1,14 +1,14 @@
// Test that attempting to read after optime fails if replication is not enabled.
(function() {
- "use strict";
+"use strict";
- var currentTime = new Date();
+var currentTime = new Date();
- var futureOpTime = new Timestamp((currentTime / 1000 + 3600), 0);
+var futureOpTime = new Timestamp((currentTime / 1000 + 3600), 0);
- assert.commandFailedWithCode(
- db.runCommand(
- {find: 'user', filter: {x: 1}, readConcern: {afterOpTime: {ts: futureOpTime, t: 0}}}),
- [ErrorCodes.NotAReplicaSet, ErrorCodes.NotImplemented]);
+assert.commandFailedWithCode(
+ db.runCommand(
+ {find: 'user', filter: {x: 1}, readConcern: {afterOpTime: {ts: futureOpTime, t: 0}}}),
+ [ErrorCodes.NotAReplicaSet, ErrorCodes.NotImplemented]);
})();