Skip to content

Commit

Permalink
chore(deps): update package deps, update mocha tests per warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Aug 18, 2016
1 parent d2531ba commit 90261b0
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 32 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@
"dependencies": {
"buffer-builder": "^0.2.0",
"bl": "^1.1.2",
"bluebird": "^3.4.0",
"bluebird": "^3.4.1",
"debug": "^2.2.0",
"lodash": "^4.13.1",
"lodash": "^4.15.0",
"node-amqp-encoder": "^0.0.2",
"node-int64": "^0.4.0",
"stately.js": "^1.3.0",
"uuid": "^2.0.2"
},
"devDependencies": {
"benchmark": "^2.1.0",
"benchmark": "^2.1.1",
"chai": "^3.5.0",
"chai-string": "^1.2.0",
"conventional-changelog-cli": "^1.2.0",
"istanbul": "^0.4.3",
"jsdoc-to-markdown": "^1.3.6",
"jshint": "^2.9.2",
"mocha": "^2.5.3",
"istanbul": "^0.4.4",
"jsdoc-to-markdown": "^1.3.7",
"jshint": "^2.9.3",
"mocha": "^3.0.2",
"qmf2": "^0.1.5",
"stream-buffers": "^3.0.0"
"stream-buffers": "^3.0.1"
},
"scripts": {
"version": "make changelog && git add CHANGELOG.md"
Expand Down
8 changes: 5 additions & 3 deletions test/integration/qpid/disposition.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ describe('Disposition', function() {
it('should auto-settle messages received from queue', function(done) {
var queueName = 'test.disposition.queue';
var messageCount = 0;
return test.client.connect(config.address)

test.client.connect(config.address)
.then(function() {
test.broker = new BrokerAgent(test.client);

Expand Down Expand Up @@ -63,7 +64,7 @@ describe('Disposition', function() {
var queueName = 'test.disposition.queue';
var messageCount = 5, receivedCount = 0;

return test.client.connect(config.address)
test.client.connect(config.address)
.then(function() {
test.broker = new BrokerAgent(test.client);
return Promise.all([
Expand Down Expand Up @@ -104,7 +105,8 @@ describe('Disposition', function() {
it('should forward disposition frames by link role', function(done) {
var queueName = 'test.disposition.queue';
var called = { receiver: false, sender: false };
return test.client.connect(config.address)

test.client.connect(config.address)
.then(function() {
return Promise.all([
test.client.createReceiver(queueName),
Expand Down
4 changes: 2 additions & 2 deletions test/integration/qpid/receiver_link.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('ReceiverLink', function() {
});

it('should allow the definition of a default subject', function(done) {
return test.client.connect(config.address)
test.client.connect(config.address)
.then(function() {
return Promise.all([
test.client.createReceiver('amq.topic/not-news'),
Expand All @@ -45,7 +45,7 @@ describe('ReceiverLink', function() {
var throttledClient =
new AMQPClient(Policy.Utils.RenewOnSettle(1, 1, Policy.Default));

return Promise.all([
Promise.all([
test.client.connect(config.address),
throttledClient.connect(config.address)
])
Expand Down
10 changes: 5 additions & 5 deletions test/integration/qpid/sender_link.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('SenderLink', function() {
});

it('should allow the definition of a default subject', function(done) {
return test.client.connect(config.address)
test.client.connect(config.address)
.then(function() {
return Promise.all([
test.client.createReceiver('amq.topic/not-news'),
Expand All @@ -42,7 +42,7 @@ describe('SenderLink', function() {
});

it('should merge default subject if sent message is raw', function(done) {
return test.client.connect(config.address)
test.client.connect(config.address)
.then(function() {
return Promise.all([
test.client.createReceiver('amq.topic/not-news'),
Expand All @@ -64,7 +64,7 @@ describe('SenderLink', function() {
});

it('should accept messages as the first parameter', function(done) {
return test.client.connect(config.address)
test.client.connect(config.address)
.then(function() {
return Promise.all([
test.client.createReceiver('test.disposition.queue'),
Expand Down Expand Up @@ -93,7 +93,7 @@ describe('SenderLink', function() {
}

it('should send custom types', function(done) {
return test.client.connect(config.address)
test.client.connect(config.address)
.then(function() {
return Promise.all([
test.client.createReceiver(config.defaultLink),
Expand All @@ -112,7 +112,7 @@ describe('SenderLink', function() {

it('should send and receive multi-frame messages', function(done) {
var messageData = new Array(2048).join('0');
return test.client.connect(config.address)
test.client.connect(config.address)
.then(function() {
return Promise.all([
test.client.createReceiver(config.defaultLink),
Expand Down
8 changes: 4 additions & 4 deletions test/integration/qpid/streams.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('QPID', function() {
var expected = Array.apply(null, new Array(100))
.map(function(a) { return Math.floor(Math.random() * 100); });

return Promise.all([
Promise.all([
test.client.createReceiverStream(config.defaultLink),
test.client.createSender(config.defaultLink)
])
Expand Down Expand Up @@ -59,7 +59,7 @@ describe('QPID', function() {
var expected = Array.apply(null, new Array(100))
.map(function(a) { return Math.floor(Math.random() * 100); });

return Promise.all([
Promise.all([
test.client.createReceiver(config.defaultLink),
test.client.createSenderStream(config.defaultLink)
])
Expand All @@ -81,7 +81,7 @@ describe('QPID', function() {
var expected = Array.apply(null, new Array(100))
.map(function(a) { return Math.floor(Math.random() * 100); });

return Promise.all([
Promise.all([
test.client.createReceiver(config.defaultLink),
test.client.createSenderStream(config.defaultLink, { callback: 'sent' })
])
Expand All @@ -108,7 +108,7 @@ describe('QPID', function() {
var expected = Array.apply(null, new Array(100))
.map(function(a) { return Math.floor(Math.random() * 100); });

return Promise.all([
Promise.all([
test.client.createReceiver(config.defaultLink),
test.client.createReceiverStream('test.streams.queue'),
test.client.createSenderStream(config.defaultLink),
Expand Down
4 changes: 2 additions & 2 deletions test/integration/servicebus/eventhubs/client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('EventHubs', function () {
expect(config.senderLink, 'Required env vars not found in ' + Object.keys(process.env)).to.exist;

var msgVal = uuid.v4();
return test.client.connect(config.address)
test.client.connect(config.address)
.then(function() {
return createPartitionReceivers(test.client, config.partitionCount, config.receiverLinkPrefix);
})
Expand Down Expand Up @@ -62,7 +62,7 @@ describe('EventHubs', function () {
} } }
};

return test.client.connect(config.address)
test.client.connect(config.address)
.then(function() {
return createPartitionReceivers(test.client, config.partitionCount, config.receiverLinkPrefix, filterOptions);
})
Expand Down
4 changes: 2 additions & 2 deletions test/integration/servicebus/eventhubs/streams.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('ServiceBus', function() {
expected = Array.apply(null, new Array(20))
.map(function(a) { return Math.floor(Math.random() * 100); });

return Promise.all([
Promise.all([
test.client.createReceiverStream(config.receiverLinkPrefix + test.partition),
test.client.createSender(config.partitionSenderLinkPrefix + test.partition)
])
Expand Down Expand Up @@ -71,7 +71,7 @@ describe('ServiceBus', function() {
expected = Array.apply(null, new Array(20))
.map(function(a) { return Math.floor(Math.random() * 100); });

return Promise.all([
Promise.all([
test.client.createReceiver(config.receiverLinkPrefix + test.partition),
test.client.createSenderStream(config.partitionSenderLinkPrefix + test.partition)
])
Expand Down
6 changes: 3 additions & 3 deletions test/integration/servicebus/queues/client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('Queues', function() {
it('should connect, send, and receive a message', function(done) {
var msgVal = uuid.v4();
test.client = new AMQPClient(Policy.ServiceBusQueue);
return test.client.connect(config.address)
test.client.connect(config.address)
.then(function() {
return Promise.all([
test.client.createReceiver(config.defaultLink),
Expand All @@ -48,7 +48,7 @@ describe('Queues', function() {

var count = 0;
var acked = false;
return test.client.connect(config.address)
test.client.connect(config.address)
.then(function() {
return Promise.all([
test.client.createReceiver(config.defaultLink),
Expand Down Expand Up @@ -87,7 +87,7 @@ describe('Queues', function() {
receiverLink: { attach: { receiverSettleMode: 1 } }
});

return test.client.connect(config.address)
test.client.connect(config.address)
.then(function() {
return Promise.all([
test.client.createReceiver(config.defaultLink),
Expand Down
6 changes: 3 additions & 3 deletions test/unit/client.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('Client', function() {
})
]);

return test.client.connect(test.server.address())
test.client.connect(test.server.address())
.tap(function() {
test.client._connection.on('connection:errorReceived', function(err) {
expect(err.condition).to.eql('amqp:connection:forced');
Expand Down Expand Up @@ -145,7 +145,7 @@ describe('Client', function() {
})
]);

return test.client.connect(test.server.address())
test.client.connect(test.server.address())
.then(function() { return test.client.createReceiver('testing'); })
.then(function (rxLink) {
rxLink.on('message', function (msg) {
Expand Down Expand Up @@ -211,7 +211,7 @@ describe('Client', function() {
})
]);

return test.client.connect(test.server.address())
test.client.connect(test.server.address())
.then(function() { return test.client.createReceiver('testing'); })
.then(function (rxLink) {
rxLink.on('message', function (msg) {
Expand Down

0 comments on commit 90261b0

Please sign in to comment.