diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2015-09-24 05:08:11 -0400 |
---|---|---|
committer | matt dannenberg <matt.dannenberg@10gen.com> | 2015-10-01 08:00:10 -0400 |
commit | 3223f84a8eeaf89a30d6789038e5d68c7b019108 (patch) | |
tree | 4245301dfa97ac6221fa2ea162c848b191969a7d /jstests/replsets/replset1.js | |
parent | d789bca4c9fe76cd4d5375e66e281ed5a349e8fd (diff) | |
download | mongo-3223f84a8eeaf89a30d6789038e5d68c7b019108.tar.gz |
SERVER-20532 add a replica_sets_legacy evergreen task
Diffstat (limited to 'jstests/replsets/replset1.js')
-rw-r--r-- | jstests/replsets/replset1.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/jstests/replsets/replset1.js b/jstests/replsets/replset1.js index 6a4b1063de9..b09cfda38c7 100644 --- a/jstests/replsets/replset1.js +++ b/jstests/replsets/replset1.js @@ -132,8 +132,13 @@ var doTest = function( signal ) { printjson(result); var lastOp = result.lastOp; var lastOplogOp = master.getDB("local").oplog.rs.find().sort({$natural : -1}).limit(1).next(); - assert.eq(lastOplogOp['ts'], lastOp['ts']); - assert.eq(lastOplogOp['t'], lastOp['t']); + if (replTest.getReplSetConfig().protocolVersion === 0) { + assert.eq(lastOplogOp['ts'], lastOp); + } + else { + assert.eq(lastOplogOp['ts'], lastOp['ts']); + assert.eq(lastOplogOp['t'], lastOp['t']); + } ts.forEach( function(z){ assert.eq( 2 , z.getIndexKeys().length , "A " + z.getMongo() ); } ); |