You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
fix test because error message seems changed
This commit is contained in:
committed by
Ruben Bridgewater
parent
c57d62c857
commit
6b294db7a2
@@ -72,7 +72,7 @@ describe("The 'select' method", function () {
|
||||
assert.strictEqual(client.selected_db, undefined, 'default db should be undefined');
|
||||
client.select(9999, function (err) {
|
||||
assert.equal(err.code, 'ERR');
|
||||
assert.equal(err.message, 'ERR invalid DB index');
|
||||
assert.equal(err.message, 'ERR DB index is out of range');
|
||||
done();
|
||||
});
|
||||
});
|
||||
@@ -97,7 +97,7 @@ describe("The 'select' method", function () {
|
||||
|
||||
client.on('error', function (err) {
|
||||
assert.strictEqual(err.command, 'SELECT');
|
||||
assert.equal(err.message, 'ERR invalid DB index');
|
||||
assert.equal(err.message, 'ERR DB index is out of range');
|
||||
done();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user