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

@@ -257,20 +257,21 @@ describe("connection tests", function () {
client.once('ready', done);
});
if (process.platform !== 'win32') {
it("connect with path provided in the options object", function (done) {
client = redis.createClient({
path: '/tmp/redis.sock',
parser: parser,
connect_timeout: 1000
});
var end = helper.callFuncAfter(done, 2);
client.once('ready', end);
client.set('foo', 'bar', end);
it("connect with path provided in the options object", function (done) {
if (process.platform === 'win32') {
this.skip();
}
client = redis.createClient({
path: '/tmp/redis.sock',
parser: parser,
connect_timeout: 1000
});
}
var end = helper.callFuncAfter(done, 2);
client.once('ready', end);
client.set('foo', 'bar', end);
});
it("connects correctly with args", function (done) {
client = redis.createClient.apply(redis.createClient, args);