From 71dc4e17a122f9fcd1c9d0594ec0657ac593296d Mon Sep 17 00:00:00 2001 From: Ben Becker Date: Fri, 20 Jan 2012 14:48:33 -0800 Subject: [PATCH] temp removal of configsvr file size test --- jstests/configsvr_size.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 jstests/configsvr_size.js diff --git a/jstests/configsvr_size.js b/jstests/configsvr_size.js deleted file mode 100644 index 84dd2b57465..00000000000 --- a/jstests/configsvr_size.js +++ /dev/null @@ -1,25 +0,0 @@ -// SERVER-4297 Test for appropriate data file size on config server -t = db.configsvr_size; -port = allocatePorts( 1 )[ 0 ]; -baseName = "jstests_configsvr_size"; -dbPath = "/data/db/" + baseName; - -// start the server -var m = startMongod( "--port", port, "--dbpath", dbPath, "--configsvr" ); -var db = m.getDB( "config" ); -var found = false; - -// insert an entry to the collection -db.test.insert( { test: 1 } ); -db.runCommand( { getLastError: 1, fsync:1 } ); - -var files = listFiles(dbPath); -for (var f in files) { - if ( files[f].name != dbPath + "/config.0" ) - continue; - - assert( files[f].size == 16777216, "Invalid data file size for config server. Expected 16777216, got " + files[f].size ); - found = true; -} - -assert(found, "Could not find test db file: " + dbPath + "/config.0"); \ No newline at end of file