diff options
author | Randolph Tan <randolph@10gen.com> | 2014-04-25 14:01:09 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2014-05-01 16:45:31 -0400 |
commit | 3fd39a9fe002c4bdd762d7434fb244a5b153b018 (patch) | |
tree | e3e379524d0f96d5b0e46322c46bcb1ebebd4e11 /jstests/repl | |
parent | 2c9c7efd9431419ed19013bf5d6019c8af690404 (diff) | |
download | mongo-3fd39a9fe002c4bdd762d7434fb244a5b153b018.tar.gz |
SERVER-13704 write commands handles ClockSkewException differently from legacy writes
Diffstat (limited to 'jstests/repl')
-rw-r--r-- | jstests/repl/master1.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/jstests/repl/master1.js b/jstests/repl/master1.js index 9f021fc6a2a..93bfaf7862c 100644 --- a/jstests/repl/master1.js +++ b/jstests/repl/master1.js @@ -44,6 +44,10 @@ rt.stop( true ); m = rt.start( true, null, true ); assert.eq( op.ts.i, lastop().ts.i ); am().save( {} ); -sleep( 3000 ); // make sure dies on its own before stop() called -assert.eq( 47 /*EXIT_CLOCK_SKEW*/, rt.stop( true ) );
\ No newline at end of file +// The above write should cause the server to terminate +assert.throws(function() { + am().findOne(); +}); + +assert.neq(0, rt.stop( true )); // fasserted |