From 3223f84a8eeaf89a30d6789038e5d68c7b019108 Mon Sep 17 00:00:00 2001 From: matt dannenberg Date: Thu, 24 Sep 2015 05:08:11 -0400 Subject: SERVER-20532 add a replica_sets_legacy evergreen task --- jstests/replsets/replset1.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'jstests/replsets/replset1.js') 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() ); } ); -- cgit v1.2.1