Skip to content

Commit

Permalink
shutdown pretender server on app destroy
Browse files Browse the repository at this point in the history
This fixes a "You created a second Pretender instance
while there was already one running" warning during
acceptance tests.

See miragejs/ember-cli-mirage#915
  • Loading branch information
kemenaran committed Apr 10, 2017
1 parent 2c5ca81 commit cca3769
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions live/tests/helpers/destroy-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ import Ember from 'ember';

export default function destroyApp(application) {
Ember.run(application, 'destroy');
server.shutdown();
}

0 comments on commit cca3769

Please sign in to comment.