 
 it 'should log application output', (done) ->
     @expectCount(1)
+    timeout = null
 
-    timeout = null
-    self = @
+    # After Maestro is running, register a remote app
+    # (which will throw an error)
     whenRunning = (serverProc) ->
         DNODE.connect DEFAULT_MONITOR_PORT, '127.0.0.1', (remote) ->
             app =

            return done()
        return

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

            return
        return

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