Skip to content

Commit

Permalink
Scope the graph to each test case
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Jul 20, 2017
1 parent b6b1a0b commit 5a52790
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/NetworkLifecycle.coffee
Expand Up @@ -143,24 +143,25 @@ describe 'Network Lifecycle', ->
loader.registerComponent 'legacy', 'Sync', legacyBasic
done()

describe 'with single Process API component', ->
describe 'with single Process API component receiving IIP', ->
c = null
g = null
out = null
before (done) ->
beforeEach (done) ->
fbpData = "
OUTPORT=Pc.OUT:OUT
'hello' -> IN Pc(process/Async)
"
noflo.graph.loadFBP fbpData, (err, g) ->
noflo.graph.loadFBP fbpData, (err, graph) ->
return done err if err
loader.registerComponent 'scope', 'Connected', g
g = graph
loader.registerComponent 'scope', 'Connected', graph
loader.load 'scope/Connected', (err, instance) ->
return done err if err
c = instance
out = noflo.internalSocket.createSocket()
c.outPorts.out.attach out
done()
beforeEach ->
out = noflo.internalSocket.createSocket()
c.outPorts.out.attach out
afterEach (done) ->
c.outPorts.out.detach out
out = null
Expand Down Expand Up @@ -188,7 +189,6 @@ describe 'Network Lifecycle', ->
done()
c.network.once 'start', checkStart
c.network.once 'end', checkEnd

c.start (err) ->
return done err if err

Expand Down

0 comments on commit 5a52790

Please sign in to comment.