1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Windows fixes

Skip redis process spawn on windows for now
This commit is contained in:
Ruben Bridgewater
2016-03-01 19:55:26 +01:00
parent 31a2d843e8
commit e48e1e845f
7 changed files with 52 additions and 39 deletions

View File

@@ -8,6 +8,11 @@ var rp;
var path = require('path');
var redis = config.redis;
if (process.platform === 'win32') {
// TODO: Fix redis process spawn on windows
return;
}
describe('master slave sync', function () {
var master = null;
var slave = null;
@@ -19,6 +24,7 @@ describe('master slave sync', function () {
});
before(function (done) {
if (helper.redisProcess().spawnFailed()) return done();
master = redis.createClient({
password: 'porkchopsandwiches'
});
@@ -78,6 +84,7 @@ describe('master slave sync', function () {
});
after(function (done) {
if (helper.redisProcess().spawnFailed()) return done();
var end = helper.callFuncAfter(done, 3);
rp.stop(end);
slave.end(true);