
'use strict';

let co = require('co'),
    redisModule = require('../../../server/lib/redis'),
    redis = redisModule.createClient();

module.exports = {
    local: {
        dontReportSauceLabs: true
    },

    before: function(done) {
        co(function*() {
            // Clear redis database
            yield redis.flushdb();
            yield redis.quit();

            yield redisModule.initDB();
            done();
        })();
    }
};

@@ -432,21 +432,244 @@
       %7D)();%0A
+    %7D,%0A%0A    after: function(done) %7B%0A        setTimeout(function() %7B%0A            // Some of the MAS server libs don't exit cleanly because of Redis connections%0A            process.exit(0);%0A        %7D, 1000);%0A%0A        done();%0A
     %7D%0A%7D;%0A

Make sure test run exits no matter what