mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 00:56:44 +01:00
try to make small oplog test more reliable
This commit is contained in:
parent
ccdb5dd86d
commit
b5893b906f
@ -212,7 +212,7 @@ def checkDbHashes(master, slave):
|
||||
print "waiting for slave to catch up..."
|
||||
ARB=10 # ARBITRARY
|
||||
time.sleep(ARB)
|
||||
argv = [shellExecutable, "--port", str(slave.port), "--quiet", "--eval", 'db.getLastError(2, 30000)']
|
||||
argv = [shellExecutable, "--port", str(slave.port), "--quiet", "--eval", 'db.smokeWait.insert( {} ); printjson( db.getLastErrorCmd(2, 60000) );']
|
||||
res = Popen(argv, stdout=PIPE).wait() #.communicate()[0]
|
||||
# FIXME: maybe assert that that res == 0?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user