azukiapp / azk

azk is a lightweight open source development environment orchestration tool. Instantly & safely run any environment on your local machine.
http://azk.io
Apache License 2.0
898 stars 63 forks source link

[Spec] Fixing error when tests were run without a running agent #613

Closed fearenales closed 8 years ago

fearenales commented 8 years ago

This PR reverts the changes made by this commit in the file spec/spec_helpers/dustman.js.

This was causing the following error when the test suite was run without a running agent:

Before all tasks:
  1) "before all" hook

events.js:72
        throw er; // Unhandled 'error' event
              ^
TypeError: Cannot call method 'unsubscribe' of undefined
    at azk-0.17.0 - spec/spec_helpers/dustman.js:71:23
    at process._tickDomainCallback (node.js:492:13)
gullitmiranda commented 8 years ago

LGTM!