diff options
Diffstat (limited to 'jstests/libs/slow_weekly_util.js')
| -rw-r--r-- | jstests/libs/slow_weekly_util.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/jstests/libs/slow_weekly_util.js b/jstests/libs/slow_weekly_util.js new file mode 100644 index 00000000000..c09a1d2811e --- /dev/null +++ b/jstests/libs/slow_weekly_util.js @@ -0,0 +1,20 @@ + +SlowWeeklyMongod = function( name ) { + this.name = name; + this.port = 30201; + + this.start = new Date(); + + this.conn = startMongodEmpty("--port", this.port, "--dbpath", "/data/db/" + this.name , "--smallfiles", "--nojournal" ); +}; + +SlowWeeklyMongod.prototype.getDB = function( name ) { + return this.conn.getDB( name ); +} + +SlowWeeklyMongod.prototype.stop = function(){ + stopMongod( this.port ); + var end = new Date(); + print( "slowWeekly test: " + this.name + " completed succesfully in " + ( ( end.getTime() - this.start.getTime() ) / 1000 ) + " seconds" ); +}; + |
