summaryrefslogtreecommitdiff
path: root/jstests/gle/gle_explicit_optime.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/gle/gle_explicit_optime.js')
-rw-r--r--jstests/gle/gle_explicit_optime.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/jstests/gle/gle_explicit_optime.js b/jstests/gle/gle_explicit_optime.js
index 476409c57b4..8a0bc0e4676 100644
--- a/jstests/gle/gle_explicit_optime.js
+++ b/jstests/gle/gle_explicit_optime.js
@@ -42,22 +42,13 @@ assert.eq(null, gleObj.err);
// Using an explicit optime on the new client should work if the optime is earlier than the
// secondary was locked
-var gleOpTimeBefore = {
- getLastError: true,
- w: 2,
- wOpTime: opTimeBeforeFailure
-};
+var gleOpTimeBefore = {getLastError: true, w: 2, wOpTime: opTimeBeforeFailure};
gleObj = newClientConn.getCollection(coll.toString()).getDB().runCommand(gleOpTimeBefore);
assert.eq(null, gleObj.err);
// Using an explicit optime on the new client should not work if the optime is later than the
// secondary was locked
-var gleOpTimeAfter = {
- getLastError: true,
- w: 2,
- wtimeout: 1000,
- wOpTime: opTimeAfterFailure
-};
+var gleOpTimeAfter = {getLastError: true, w: 2, wtimeout: 1000, wOpTime: opTimeAfterFailure};
gleObj = newClientConn.getCollection(coll.toString()).getDB().runCommand(gleOpTimeAfter);
assert.neq(null, gleObj.err);
assert(gleObj.wtimeout);