Skip to content

Commit 9a2f402

Browse files
committed
Fix race condition with reconfig in new test
1 parent d780f7a commit 9a2f402

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

jstests/replsets/sync_passive2.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,9 @@ assert.soon(function() {
205205
return checkSyncingFrom(nodes[2], replTest.host+":"+replTest.ports[3]);
206206
});
207207

208-
print("do a write");
209-
replTest.getMaster().getDB("foo").bar.insert({x:1});
210-
211-
print("check that 2 changes sync targets");
208+
print("do writes and check that 2 changes sync targets");
212209
assert.soon(function() {
210+
replTest.getMaster().getDB("foo").bar.insert({x:1});
213211
return !checkSyncingFrom(nodes[2], replTest.host+":"+replTest.ports[3]);
214212
}, 'failed to change sync target', 60000);
215213

0 commit comments

Comments
 (0)