Skip to content

Commit

Permalink
add manual pretender shutdown to fix acceptance tests
Browse files Browse the repository at this point in the history
no issue
- a [recent update](pretenderjs/pretender#178) to Pretender contained a breaking change that throws an error when multiple pretender instances exist
- using mirage in acceptance tests was [triggering the error](miragejs/ember-cli-mirage#915)
  • Loading branch information
kevinansfield committed Jan 5, 2017
1 parent 9a8bf75 commit 4532ee2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/helpers/destroy-app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import run from 'ember-runloop';

export default function destroyApp(application) {
// this is required to fix "second Pretender instance" warnings
if (server) {
server.shutdown();
}

run(application, 'destroy');
}

0 comments on commit 4532ee2

Please sign in to comment.