Skip to content

Commit

Permalink
Fix test for SERVER-4706
Browse files Browse the repository at this point in the history
gle doesn't work with mongos (SERVER-7739) so use awaitReplication instead to synchronize the test.
  • Loading branch information
renctan committed Nov 21, 2012
1 parent d562f53 commit 5ef9938
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jstests/sharding/read_pref_cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ 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 });
// Hack until SERVER-7739 gets fixed
st.rs0.awaitReplication();

configDB.adminCommand({ enableSharding: 'test' });
configDB.adminCommand({ shardCollection: 'test.user', key: { x: 1 }});
Expand Down

0 comments on commit 5ef9938

Please sign in to comment.