summaryrefslogtreecommitdiff
path: root/jstests/replsets/restore_term.js
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2015-08-14 13:02:40 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2015-08-14 13:44:55 -0400
commitd156ce8f245c127b20c26b37a706717c2fd2d854 (patch)
tree7dc85abc5d97869dc581d3c2e4eab6baaad74b52 /jstests/replsets/restore_term.js
parente73b7d634c66e73f80a4ba1521354de00a0db885 (diff)
downloadmongo-d156ce8f245c127b20c26b37a706717c2fd2d854.tar.gz
SERVER-19909 Fix term of insert op in restore_term.js
Diffstat (limited to 'jstests/replsets/restore_term.js')
-rw-r--r--jstests/replsets/restore_term.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/restore_term.js b/jstests/replsets/restore_term.js
index 0c05bc4da3e..cd0b2c25850 100644
--- a/jstests/replsets/restore_term.js
+++ b/jstests/replsets/restore_term.js
@@ -32,7 +32,7 @@ assert.eq(getCurrentTerm(primary), firstSuccessfulTerm);
// Check that the insert op has the initial term.
var latestOp = getLatestOp(primary);
assert.eq(latestOp.op, "i");
-assert.eq(latestOp.t, NumberLong(1));
+assert.eq(latestOp.t, firstSuccessfulTerm);
// Step down to increase the term.
try {