Skip to content

Commit

Permalink
Wait for startFlows to resolve before returning from loadFlow call
Browse files Browse the repository at this point in the history
Needed when running with 1.3 or later.
  • Loading branch information
knolleary committed Feb 13, 2021
1 parent 55d45b6 commit 56a595e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,7 @@ class NodeTestHelper extends EventEmitter {
});

return redNodes.loadFlows()
.then(() => {
redNodes.startFlows();
.then(redNodes.startFlows).then(() => {
should.deepEqual(testFlow, redNodes.getFlows().flows);
if(cb) cb();
});
Expand Down

0 comments on commit 56a595e

Please sign in to comment.