0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

fix dumprestore3.js

This commit is contained in:
Eliot Horowitz 2011-01-03 01:04:04 -05:00
parent 0b190bfed4
commit bfa73484df

View File

@ -52,7 +52,7 @@ dataFile = "/data/db/dumprestore3-other2.json";
runMongoProgram( "mongoexport", "--host", "127.0.0.1:"+port, "--out", dataFile, "--db", "foo", "--collection", "bar" );
x = runMongoProgram( "mongoimport", "--host", "127.0.0.1:"+replTest.ports[1], "--file", dataFile );
assert.eq(x, 255, "mongoreimport should exit w/ -1 on slave");
assert.eq(x, _isWindows() ? -1 : 255, "mongoreimport should exit w/ -1 on slave"); // windows return is signed
step("stopSet");
replTest.stopSet();