 
   describe 'with JSON graph definition', ->
     it 'should emit a ready event after network has been loaded', (done) ->
-      @timeout 6000
       c.baseDir = root
       c.once 'ready', ->
         chai.expect(c.network).not.to.be.null

              chai.expect(ip.data).to.equal 'foo'
              chai.expect(ip.subgraph).to.be.undefined
              done()
        graph.addInitial 'foo', 'Sub', 'in'
    describe 'with two levels of subgraphs', ->
      graph = null
      network = null
      before (done) ->
        graph = new noflo.Graph 'main'
        graph.baseDir = root
        network = new noflo.Network graph
        network.loader.listComponents (err) ->
          return done err if err
          network.loader.components.Split = Split
          network.loader.components.Merge = SubgraphMerge
          sg = new noflo.Graph 'Subgraph'

        ]

  describe 'with a Graph instance', ->
    gr = null
    before ->
      gr = new noflo.Graph 'Hello, world'
      gr.baseDir = root
      gr.addNode 'Split', 'Split'
      gr.addNode 'Merge', 'Merge'
      gr.addEdge 'Merge', 'out', 'Split', 'in'
      gr.addInport 'in', 'Merge', 'in'
      gr.addOutport 'out', 'Split', 'out'
    it 'should emit a ready event after network has been loaded', (done) ->
      c.baseDir = root
      c.once 'ready', ->
        chai.expect(c.network).not.to.be.null
