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

found another difference on Windows CI

This commit is contained in:
Benjamin Coe
2015-09-13 01:05:50 -07:00
parent 40f535b6c6
commit 224aff9cee
10 changed files with 9 additions and 11 deletions

View File

@@ -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:

View File

@@ -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();
});
});

View File

@@ -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();
});
});

View File

@@ -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();
});
});

View File

@@ -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();
});
});

View File

@@ -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();
});
});

View File

@@ -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();
});
});

View File

@@ -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();
});
});

View File

@@ -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();
});
});

View File

@@ -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();
});
});