diff options
Diffstat (limited to 'jstests/tool/files1.js')
-rw-r--r-- | jstests/tool/files1.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/tool/files1.js b/jstests/tool/files1.js index acfcc16dcc3..bd8ec971ad6 100644 --- a/jstests/tool/files1.js +++ b/jstests/tool/files1.js @@ -1,17 +1,17 @@ // files1.js -t = new ToolTest( "files1" ) +t = new ToolTest( "files1" ); db = t.startDB(); -filename = 'mongod' +filename = 'mongod'; if ( _isWindows() ) - filename += '.exe' + filename += '.exe'; t.runTool( "files" , "-d" , t.baseName , "put" , filename ); md5 = md5sumFile(filename); -file_obj = db.fs.files.findOne() +file_obj = db.fs.files.findOne(); assert( file_obj , "A 0" ); md5_stored = file_obj.md5; md5_computed = db.runCommand({filemd5: file_obj._id}).md5; @@ -24,4 +24,4 @@ t.runTool( "files" , "-d" , t.baseName , "get" , filename , '-l' , t.extFile ); md5 = md5sumFile(t.extFile); assert.eq( md5 , md5_stored , "B" ); -t.stop() +t.stop(); |