diff options
Diffstat (limited to 'jstests/replsets/optime.js')
| -rw-r--r-- | jstests/replsets/optime.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/jstests/replsets/optime.js b/jstests/replsets/optime.js index ff99784c1d7..69d5f875df4 100644 --- a/jstests/replsets/optime.js +++ b/jstests/replsets/optime.js @@ -62,11 +62,8 @@ var replTest = new ReplSetTest( const nodes = replTest.startSet(); -// Tests that serverStatus oplog returns null timestamps if the oplog collection doesn't exist. -const zeroTs = new Timestamp(0, 0); -const oplogStatus = nodes[0].getDB('admin').serverStatus({oplog: true}).oplog; -assert.eq(oplogStatus.earliestOptime, zeroTs); -assert.eq(oplogStatus.latestOptime, zeroTs); +// Tests that serverStatus oplog returns an error if the oplog collection doesn't exist. +assert.commandFailedWithCode(nodes[0].getDB('admin').serverStatus({oplog: true}), 17347); replTest.initiate(); var primary = replTest.getPrimary(); |
