Skip to content

Commit

Permalink
fix moleculer test timing out in latest version (DataDog#2288)
Browse files Browse the repository at this point in the history
  • Loading branch information
rochdev committed Aug 15, 2022
1 parent ebc7611 commit 16a1c75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/datadog-plugin-moleculer/test/index.spec.js
Expand Up @@ -198,7 +198,8 @@ describe('Plugin', () => {
before(() => startBroker())

before(function () {
this.timeout(10000) // wait for discovery
const waitTimeout = 10000
this.timeout(waitTimeout) // wait for discovery
const { ServiceBroker } = require(`../../../versions/moleculer@${version}`).get()

clientBroker = new ServiceBroker({
Expand All @@ -217,7 +218,7 @@ describe('Plugin', () => {
})

return clientBroker.start()
.then(() => clientBroker.waitForServices('math'))
.then(() => clientBroker.waitForServices('math', waitTimeout))
})

after(() => clientBroker.stop())
Expand Down

0 comments on commit 16a1c75

Please sign in to comment.