Skip to content

Commit 3569a68

Browse files
committed
tests: fix test on windows
1 parent caaae9c commit 3569a68

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/node_redis.spec.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,11 @@ describe('The node_redis client', function () {
360360

361361
it('send_command with callback as args', function (done) {
362362
client.send_command('abcdef', function (err, res) {
363-
assert.strictEqual(err.message, 'ERR unknown command `abcdef`, with args beginning with: ');
363+
if (process.platform === 'win32') {
364+
assert.strictEqual(err.message, 'ERR unknown command `abcdef`');
365+
} else {
366+
assert.strictEqual(err.message, 'ERR unknown command `abcdef`, with args beginning with: ');
367+
}
364368
done();
365369
});
366370
});

0 commit comments

Comments
 (0)