Skip to content

Commit

Permalink
Improve AMQP Integration Tests
Browse files Browse the repository at this point in the history
- Remove old amqp tests
- Enhance purge function to allow clearing queues without deleting
- Fix type error in AMQP Transporter
- Run the same test suite for built-in and AMQP balancing
- PreferLocal = false for rpc suite.
  • Loading branch information
Nathan-Schwartz committed Oct 9, 2017
1 parent 963e30a commit 2a1886f
Show file tree
Hide file tree
Showing 21 changed files with 316 additions and 876 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -18,7 +18,7 @@
"test": "jest --coverage --no-cache",
"test:unit": "jest --testMatch \"**/unit/**spec.js\" --coverage --no-cache",
"test:int": "jest --testMatch \"**/integration/**spec.js\" --coverage --no-cache",
"test:amqp": "jest --testMatch \"**/integration/amqp/**spc.js\""
"test:amqp": "jest --testMatch \"**/integration/amqp/**spc.js\" --runInBand"
},
"keywords": [
"microservices",
Expand Down
2 changes: 1 addition & 1 deletion src/transporters/amqp.js
Expand Up @@ -182,7 +182,7 @@ class AmqpTransporter extends Transporter {
.then(() => this.channel.close())
.then(() => this.connection.close())
.then(() => {
this.bindings = null;
this.bindings = [];
this.channel = null;
this.connection = null;
})
Expand Down
57 changes: 0 additions & 57 deletions test/integration/amqp.old/events/events.spc.js

This file was deleted.

23 changes: 0 additions & 23 deletions test/integration/amqp.old/events/pub.js

This file was deleted.

22 changes: 0 additions & 22 deletions test/integration/amqp.old/events/sub1.js

This file was deleted.

22 changes: 0 additions & 22 deletions test/integration/amqp.old/events/sub2.js

This file was deleted.

22 changes: 0 additions & 22 deletions test/integration/amqp.old/events/sub3.js

This file was deleted.

122 changes: 0 additions & 122 deletions test/integration/amqp.old/purge.js

This file was deleted.

38 changes: 0 additions & 38 deletions test/integration/amqp.old/rpc/fiveRequests.js

This file was deleted.

0 comments on commit 2a1886f

Please sign in to comment.