Permalink
Browse files

accept both error messages (win!=Linux)

  • Loading branch information...
Apollon77 authored and BridgeAR committed Apr 3, 2018
1 parent 6b294db commit 673b1770756bca1ffa912e911f799657ca4e259d
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/commands/select.spec.js
@@ -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 DB index is out of range');
+ assert((err.message == 'ERR DB index is out of range' || err.message == 'ERR invalid DB index'));
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 DB index is out of range');
+ assert((err.message == 'ERR DB index is out of range' || err.message == 'ERR invalid DB index'));
done();
});

0 comments on commit 673b177

Please sign in to comment.