summaryrefslogtreecommitdiff
path: root/jstests/sharding/sync_conn_cmd.js
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2015-01-26 16:09:23 -0500
committerRandolph Tan <randolph@10gen.com>2015-01-26 16:10:27 -0500
commit50b8028f9d4c2092c76249c4f6e2c94f27b5b0c6 (patch)
tree07f5c2ac9e27512c58db47f8f1948222cadfec1a /jstests/sharding/sync_conn_cmd.js
parenta6ddf1762548e641930288d77d8910c30bb7cbb4 (diff)
downloadmongo-50b8028f9d4c2092c76249c4f6e2c94f27b5b0c6.tar.gz
SERVER-17057 Make sure insert succeeded in sync_conn_cmd.js before testing
Diffstat (limited to 'jstests/sharding/sync_conn_cmd.js')
-rw-r--r--jstests/sharding/sync_conn_cmd.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/sync_conn_cmd.js b/jstests/sharding/sync_conn_cmd.js
index 7ea5a4352e8..cc0e51a17e7 100644
--- a/jstests/sharding/sync_conn_cmd.js
+++ b/jstests/sharding/sync_conn_cmd.js
@@ -10,7 +10,7 @@ var configDB = st.config;
var coll = configDB.test;
for( var x = 0; x < 10; x++ ){
- coll.insert({ v: x });
+ assert.writeOK(coll.insert({ v: x }));
}
var testNormalCount = function(){