Open
Description
Some it
functions aren't executed linearly, they seem to run in parallel. How do I fix? afterEach
didn't fix it
Example
it('should emit a removeInitial event', (done) -> {
g.once('removeInitial', (iips) -> {
final iip:zenflo.graph.GraphIIP = iips[0];
iip.from.data.should.be('Foo');
iip.to.node.should.be('Split');
iip.to.port.should.be('in');
done();
});
g.removeInitial('Split', 'in');
trace("should emit a removeInitial event =>" + g.initializers);
});
it('should contain no IIPs', () -> {
trace("should contain no IIPs =>" + g.initializers.length);
g.initializers.length.should.be(0);
});
The order at which the output prints are:
should contain no IIPs =>1
should emit a removeInitial event =>[]
Expected outcome:
should emit a removeInitial event =>[]
should contain no IIPs =>1
Metadata
Metadata
Assignees
Labels
No labels