Permalink
Browse files

make sure to wait for results in test

  • Loading branch information...
erh committed Jul 14, 2012
1 parent 317f6ad commit 156acb6223642803a616ad4c695035dddff5ac24
Showing with 3 additions and 0 deletions.
  1. +3 −0 jstests/tool/dumprestoreWithNoOptions.js
@@ -26,6 +26,7 @@ for ( var opt in options ) {
assert.eq(options[opt], cappedOptions[opt], 'invalid option')
}
db.capped.insert({ x: 1 });
+db.getLastError()
// Full dump/restore
@@ -52,6 +53,7 @@ for ( var opt in options ) {
assert.eq(options[opt], cappedOptions[opt], 'invalid option')
}
db.capped.insert({ x: 1 });
+db.getLastError()
dumppath = t.ext + "noOptionsSingleDump/";
mkdir(dumppath);
@@ -80,6 +82,7 @@ for ( var opt in options ) {
assert.eq(options[opt], cappedOptions[opt], 'invalid option')
}
db.capped.insert({ x: 1 });
+db.getLastError()
dumppath = t.ext + "noOptionsSingleColDump/";
mkdir(dumppath);

0 comments on commit 156acb6

Please sign in to comment.