1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Skip tls tests on windows and stunnel

This will also remove the libwrap option to work on arch
This commit is contained in:
Ruben Bridgewater
2015-11-07 14:37:35 +01:00
parent 0596480b03
commit b91692e928
6 changed files with 39 additions and 10 deletions

View File

@@ -103,7 +103,7 @@ describe("connection tests", function () {
max_attempts: 1
};
client = redis.createClient(options);
assert.strictEqual(client.connection_option.family, ip === 'IPv6' ? 6 : 4);
assert.strictEqual(client.connection_options.family, ip === 'IPv6' ? 6 : 4);
assert.strictEqual(Object.keys(options).length, 4);
var end = helper.callFuncAfter(done, 2);
@@ -142,7 +142,7 @@ describe("connection tests", function () {
assert(client.stream._events.timeout);
});
assert.strictEqual(client.address, '192.168.74.167:6379');
assert.strictEqual(client.connection_option.family, 4);
assert.strictEqual(client.connection_options.family, 4);
var time = Date.now();
client.on("reconnecting", function (params) {
@@ -162,7 +162,7 @@ describe("connection tests", function () {
host: '2001:db8::ff00:42:8329' // auto detect ip v6
});
assert.strictEqual(client.address, '2001:db8::ff00:42:8329:6379');
assert.strictEqual(client.connection_option.family, 6);
assert.strictEqual(client.connection_options.family, 6);
process.nextTick(function() {
assert.strictEqual(client.stream._events.timeout, undefined);
});
@@ -240,7 +240,7 @@ describe("connection tests", function () {
it("connects with a port only", function (done) {
client = redis.createClient(6379);
assert.strictEqual(client.connection_option.family, 4);
assert.strictEqual(client.connection_options.family, 4);
client.on("error", done);
client.once("ready", function () {