Skip to content

Commit 56a595e

Browse files
committed
Wait for startFlows to resolve before returning from loadFlow call
Needed when running with 1.3 or later.
1 parent 55d45b6 commit 56a595e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,7 @@ class NodeTestHelper extends EventEmitter {
272272
});
273273

274274
return redNodes.loadFlows()
275-
.then(() => {
276-
redNodes.startFlows();
275+
.then(redNodes.startFlows).then(() => {
277276
should.deepEqual(testFlow, redNodes.getFlows().flows);
278277
if(cb) cb();
279278
});

0 commit comments

Comments
 (0)