summaryrefslogtreecommitdiff
path: root/test/legacy26/jstests/libs/slow_weekly_util.js
blob: 1e2c7391cb1cd46a34713caea7b4f5079875d5f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

SlowWeeklyMongod = function( name ) {
    this.name = name;
    this.port = 30201;
    
    this.start = new Date();

    this.conn = startMongodEmpty("--port", this.port, "--dbpath", MongoRunner.dataPath + 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" );
};