0
0
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:
Eliot Horowitz 2010-08-25 22:44:05 -04:00
parent ccdb5dd86d
commit b5893b906f

View File

@ -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?