summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/sharding/read_pref_cmd.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/read_pref_cmd.js b/jstests/sharding/read_pref_cmd.js
index 0b271737eb8..f70d1d4de92 100644
--- a/jstests/sharding/read_pref_cmd.js
+++ b/jstests/sharding/read_pref_cmd.js
@@ -155,6 +155,7 @@ assert.soon(function() {
doTest(new Mongo(st.rs0.getURL()), st.rs0.nodes, false);
st.s.getDB('test').dropDatabase();
+st.s.getDB('test').runCommand({ getLastError: 1, w: NODE_COUNT });
configDB.adminCommand({ enableSharding: 'test' });
configDB.adminCommand({ shardCollection: 'test.user', key: { x: 1 }});