summaryrefslogtreecommitdiff
path: root/jstests/shellspawn.js
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2010-03-25 19:21:32 +0100
committerAntonin Kral <a.kral@bobek.cz>2010-03-25 19:21:32 +0100
commit0ca01a91ae0a3562e54c226e7b9512feb2ea83d0 (patch)
tree2b3886e435b0217d6afd63a213b04d32bb4b4f6f /jstests/shellspawn.js
parenta696359b248adef0cc8576fce3f473535e995136 (diff)
downloadmongodb-0ca01a91ae0a3562e54c226e7b9512feb2ea83d0.tar.gz
Imported Upstream version 1.4.0
Diffstat (limited to 'jstests/shellspawn.js')
-rw-r--r--jstests/shellspawn.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/shellspawn.js b/jstests/shellspawn.js
index ea2b671..5b0de6b 100644
--- a/jstests/shellspawn.js
+++ b/jstests/shellspawn.js
@@ -6,13 +6,13 @@ if ( typeof( _startMongoProgram ) == "undefined" ){
print( "no fork support" );
}
else {
- spawn = startMongoProgramNoConnect( "mongo", "--port", myPort(), "--eval", "sleep( 2000 ); db.getCollection( \"" + baseName + "\" ).save( {a:1} );" );
+ spawn = startMongoProgramNoConnect( "mongo", "--port", myPort(), "--eval", "sleep( 2000 ); db.getCollection( '" + baseName + "' ).save( {a:1} );" );
assert.soon( function() { return 1 == t.count(); } );
stopMongoProgramByPid( spawn );
- spawn = startMongoProgramNoConnect( "mongo", "--port", myPort(), "--eval", "print( \"I am a shell\" );" );
+ spawn = startMongoProgramNoConnect( "mongo", "--port", myPort(), "--eval", "print( 'I am a shell' );" );
spawn = startMongoProgramNoConnect( "mongo", "--port", myPort() );
@@ -21,4 +21,4 @@ else {
stopMongoProgramByPid( spawn );
// all these shells should be killed
-} \ No newline at end of file
+}