summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2015-11-20 12:04:03 -0500
committerGabriel Russell <gabriel.russell@mongodb.com>2015-11-20 12:29:25 -0500
commitdd5a7a0b5ee30c859a09a4166ddaf4bacc641122 (patch)
tree7ead605c6879493cab5f5b8959a104681e4e2995
parent0d80cfd4c159e5c41935b797727c8c23b7ce4d4d (diff)
downloadmongo-dd5a7a0b5ee30c859a09a4166ddaf4bacc641122.tar.gz
TOOLS-967 invert the expectation of nonempty_temp_users.js and users_and_roles_temp_collections.js
-rw-r--r--test/qa-tests/jstests/restore/nonempty_temp_users.js4
-rw-r--r--test/qa-tests/jstests/restore/users_and_roles_temp_collections.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/qa-tests/jstests/restore/nonempty_temp_users.js b/test/qa-tests/jstests/restore/nonempty_temp_users.js
index 65ff75fff56..6b19850ae9e 100644
--- a/test/qa-tests/jstests/restore/nonempty_temp_users.js
+++ b/test/qa-tests/jstests/restore/nonempty_temp_users.js
@@ -37,10 +37,10 @@
// insert into the tempusers collection
adminDB.tempusers.insert({ _id: 'corruption' });
- // restore the data. it should fail
+ // restore the data. It should succeed
ret = toolTest.runTool.apply(toolTest, ['restore'].
concat(getRestoreTarget(dumpTarget)));
- assert.neq(0, ret);
+ assert.neq(1, ret);
// success
toolTest.stop();
diff --git a/test/qa-tests/jstests/restore/users_and_roles_temp_collections.js b/test/qa-tests/jstests/restore/users_and_roles_temp_collections.js
index e9cf6e71c72..4359b1b776b 100644
--- a/test/qa-tests/jstests/restore/users_and_roles_temp_collections.js
+++ b/test/qa-tests/jstests/restore/users_and_roles_temp_collections.js
@@ -84,8 +84,8 @@
concat(commonToolArgs)
);
- // we should fail with default temp collections
- assert.neq(0, ret);
+ // we should succeed with default temp collections
+ assert.eq(0, ret);
// try to restore the data with new temp collections
ret = toolTest.runTool.apply(