From 224aff9cee64123680732587f906617fcfab8cf2 Mon Sep 17 00:00:00 2001 From: Benjamin Coe Date: Sun, 13 Sep 2015 01:05:50 -0700 Subject: [PATCH] found another difference on Windows CI --- appveyor.yml | 2 -- test/commands/dbsize.spec.js | 2 +- test/commands/flushdb.spec.js | 2 +- test/commands/get.spec.js | 2 +- test/commands/getset.spec.js | 2 +- test/commands/incr.spec.js | 2 +- test/commands/mset.spec.js | 2 +- test/commands/multi.spec.js | 2 +- test/commands/select.spec.js | 2 +- test/commands/set.spec.js | 2 +- 10 files changed, 9 insertions(+), 11 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index bff643a9e8..3966d52e72 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -25,8 +25,6 @@ test_script: # Output useful info for debugging. - node --version - npm --version - # We test multiple Windows shells - - ps: "npm t # PowerShell" # Pass comment to PS for easier debugging - cmd: npm t os: diff --git a/test/commands/dbsize.spec.js b/test/commands/dbsize.spec.js index 118ba0b15c..845a4adaa1 100644 --- a/test/commands/dbsize.spec.js +++ b/test/commands/dbsize.spec.js @@ -34,7 +34,7 @@ describe("The 'dbsize' method", function () { it("reports an error", function (done) { client.dbsize([], function (err, res) { - assert.equal(err.message, 'Redis connection gone from end event.'); + assert(err.message.match(/Redis connection gone/)); done(); }); }); diff --git a/test/commands/flushdb.spec.js b/test/commands/flushdb.spec.js index 409f81b091..3ba5214040 100644 --- a/test/commands/flushdb.spec.js +++ b/test/commands/flushdb.spec.js @@ -34,7 +34,7 @@ describe("The 'flushdb' method", function () { it("reports an error", function (done) { client.flushdb(function (err, res) { - assert.equal(err.message, 'Redis connection gone from end event.'); + assert(err.message.match(/Redis connection gone/)); done(); }); }); diff --git a/test/commands/get.spec.js b/test/commands/get.spec.js index 9aac49f14f..1a6f641532 100644 --- a/test/commands/get.spec.js +++ b/test/commands/get.spec.js @@ -34,7 +34,7 @@ describe("The 'get' method", function () { it("reports an error", function (done) { client.get(key, function (err, res) { - assert.equal(err.message, 'Redis connection gone from end event.'); + assert(err.message.match(/Redis connection gone/)); done(); }); }); diff --git a/test/commands/getset.spec.js b/test/commands/getset.spec.js index 2cc938aa6c..e650ccaa5f 100644 --- a/test/commands/getset.spec.js +++ b/test/commands/getset.spec.js @@ -36,7 +36,7 @@ describe("The 'getset' method", function () { it("reports an error", function (done) { client.GET(key, redis.print); // Use the utility function to print the error client.get(key, function (err, res) { - assert.equal(err.message, 'Redis connection gone from end event.'); + assert(err.message.match(/Redis connection gone/)); done(); }); }); diff --git a/test/commands/incr.spec.js b/test/commands/incr.spec.js index f4d6b8ea47..6b88312f01 100644 --- a/test/commands/incr.spec.js +++ b/test/commands/incr.spec.js @@ -35,7 +35,7 @@ describe("The 'incr' method", function () { it("reports an error", function (done) { client.incr(function (err, res) { - assert.equal(err.message, 'Redis connection gone from end event.'); + assert(err.message.match(/Redis connection gone/)); done(); }); }); diff --git a/test/commands/mset.spec.js b/test/commands/mset.spec.js index 2ef9726dcd..1718462b67 100644 --- a/test/commands/mset.spec.js +++ b/test/commands/mset.spec.js @@ -36,7 +36,7 @@ describe("The 'mset' method", function () { it("reports an error", function (done) { client.mset(key, value, key2, value2, function (err, res) { - assert.equal(err.message, 'Redis connection gone from end event.'); + assert(err.message.match(/Redis connection gone/)); done(); }); }); diff --git a/test/commands/multi.spec.js b/test/commands/multi.spec.js index 6d4def8030..5ac459140e 100644 --- a/test/commands/multi.spec.js +++ b/test/commands/multi.spec.js @@ -35,7 +35,7 @@ describe("The 'multi' method", function () { it("reports an error", function (done) { client.multi(); client.exec(function (err, res) { - assert.equal(err.message, 'Redis connection gone from end event.'); + assert(err.message.match(/Redis connection gone/)); done(); }); }); diff --git a/test/commands/select.spec.js b/test/commands/select.spec.js index 1f0c38581f..924fc9f9c5 100644 --- a/test/commands/select.spec.js +++ b/test/commands/select.spec.js @@ -26,7 +26,7 @@ describe("The 'select' method", function () { it("throws an error if redis is not connected", function (done) { client.select(1, function (err, res) { - assert.equal(err.message, 'Redis connection gone from end event.'); + assert(err.message.match(/Redis connection gone/)); done(); }); }); diff --git a/test/commands/set.spec.js b/test/commands/set.spec.js index 1ef70fc7db..927c64c6dd 100644 --- a/test/commands/set.spec.js +++ b/test/commands/set.spec.js @@ -34,7 +34,7 @@ describe("The 'set' method", function () { it("reports an error", function (done) { client.set(key, value, function (err, res) { - assert.equal(err.message, 'Redis connection gone from end event.'); + assert(err.message.match(/Redis connection gone/)); done(); }); });