diff options
Diffstat (limited to 'jstests/tool/dumpfilename1.js')
-rw-r--r-- | jstests/tool/dumpfilename1.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/jstests/tool/dumpfilename1.js b/jstests/tool/dumpfilename1.js index 4a79a11bdb1..3e826952c4c 100644 --- a/jstests/tool/dumpfilename1.js +++ b/jstests/tool/dumpfilename1.js @@ -1,13 +1,12 @@ -//dumpfilename1.js +// dumpfilename1.js -//Test designed to make sure error that dumping a collection with "/" fails +// Test designed to make sure error that dumping a collection with "/" fails -t = new ToolTest( "dumpfilename1" ); +t = new ToolTest("dumpfilename1"); -t.startDB( "foo" ); +t.startDB("foo"); c = t.db; -assert.writeOK(c.getCollection("df/").insert({ a: 3 })); -assert(t.runTool( "dump" , "--out" , t.ext ) != 0, "dump should fail with non-zero return code"); +assert.writeOK(c.getCollection("df/").insert({a: 3})); +assert(t.runTool("dump", "--out", t.ext) != 0, "dump should fail with non-zero return code"); t.stop(); - |