Files
mongo/jstests/core/js1.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

21 lines
452 B
JavaScript

// @tags: [requires_non_retryable_writes]
t = db.jstests_js1;
t.remove({});
t.save({z: 1});
t.save({z: 2});
assert(2 == t.find().length());
assert(2 == t.find({
$where: function() {
return 1;
}
}).length());
assert(1 == t.find({
$where: function() {
return obj.z == 2;
}
}).length());
assert(t.validate().valid);