Skip to content

Commit

Permalink
updated tests to work for ioredis
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Nov 16, 2016
1 parent 82a90b6 commit f1ea81c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ describe('Queue', function () {
var queue = new Queue('connstring', '6379', '127.0.0.1');

queue.once('ready', function () {
expect(queue.client.connection_options.host).to.be('127.0.0.1');
expect(queue.bclient.connection_options.host).to.be('127.0.0.1');
expect(queue.client.options.host).to.be('127.0.0.1');
expect(queue.bclient.options.host).to.be('127.0.0.1');

expect(queue.client.connection_options.port).to.be(6379);
expect(queue.bclient.connection_options.port).to.be(6379);
expect(queue.client.options.port).to.be(6379);
expect(queue.bclient.options.port).to.be(6379);

expect(queue.client.selected_db).to.be(0);
expect(queue.bclient.selected_db).to.be(0);
expect(queue.client.condition.select).to.be(0);
expect(queue.bclient.condition.select).to.be(0);

queue.close().then(done);

Expand Down

0 comments on commit f1ea81c

Please sign in to comment.