Skip to content

Commit

Permalink
SMC-3242: fixed cluster plugin test for node v16
Browse files Browse the repository at this point in the history
  • Loading branch information
southbite committed Sep 11, 2021
1 parent 4fae6b0 commit 5435e6e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unit/04-cluster-plugin-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ describe('04 - Unit tests for cluster-plugin registering dependencies', () => {
mesh._mesh.clusterClient.mount = sinon.fake();
mesh._mesh.clusterClient.construct = sinon.fake();
node.start(e => {
expect(e.toString()).to.eql("TypeError: Cannot read property 'exchange' of undefined"); //We expect this error because our mesh is not properly constructed
expect(
e.message === "Cannot read properties of undefined (reading 'exchange')" ||
e.message === "Cannot read property 'exchange' of undefined"
).to.be(true); //We expect this error because our mesh is not properly constructed
expect(mesh._mesh.clusterClient.construct.callCount).to.be(1);
expect(mesh._mesh.config.brokered).to.be(true);
expect(mesh._mesh.clusterClient.construct.calledWith({ component6: { version: '*' } })).to.be(
Expand Down

0 comments on commit 5435e6e

Please sign in to comment.