Files
mongo/jstests/core/remove3.js
Jack Mulrow 00d92ece19 SERVER-31194 Add jscore tags for retryable_writes_jscore_stepdown_passthrough.yml suite
The actual suite will come in a follow-up commit.
2017-12-07 14:36:15 -05:00

20 lines
323 B
JavaScript

// @tags: [requires_non_retryable_writes]
t = db.remove3;
t.drop();
for (i = 1; i <= 8; i++) {
t.save({_id: i, x: i});
}
assert.eq(8, t.count(), "A");
t.remove({x: {$lt: 5}});
assert.eq(4, t.count(), "B");
t.remove({_id: 5});
assert.eq(3, t.count(), "C");
t.remove({_id: {$lt: 8}});
assert.eq(1, t.count(), "D");