Skip to content

Commit

Permalink
accept both error messages (win!=Linux)
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 authored and BridgeAR committed Apr 3, 2018
1 parent 6b294db commit 673b177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/commands/select.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand All @@ -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();
});

Expand Down

0 comments on commit 673b177

Please sign in to comment.