 it 'should run on command', (done) ->
     @expectCount(7)
 
+    # Collect stdout for testing
     whenRunning = (serverProc) ->
         writeCount = 0
         buff = ''

            return
        return

    opts =
        command: 'dist/cli.js'
        args: ['localhost', FIXTURES]

        expect(rpcMessage.level).toBe(30)
        expect(rpcMessage.msg).toBe("started rpc server on 127.0.0.1:7272")

        # Make sure only one process is running
        PROC.findProcess(gProcTitle).then (found) ->
            foundProc = found[0] or {}
            expect(found.length).toBe(1)
