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

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

    this.conn = MongoRunner.runMongod({smallfiles: "", nojournal: ""});
    this.port = this.conn.port;
};

SlowWeeklyMongod.prototype.getDB = function( name ) {
    return this.conn.getDB( name );
};

SlowWeeklyMongod.prototype.stop = function(){
    MongoRunner.stopMongod( this.conn );
    var end = new Date();
    print( "slowWeekly test: " + this.name + " completed successfully in " + ( ( end.getTime() - this.start.getTime() ) / 1000 ) + " seconds" );
};