From 4532ee2e8423ff884ae2362b5ea6649032c5ec3f Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 17 Oct 2016 11:20:18 +0100 Subject: [PATCH] add manual pretender shutdown to fix acceptance tests no issue - a [recent update](https://github.com/pretenderjs/pretender/pull/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](https://github.com/samselikoff/ember-cli-mirage/issues/915) --- tests/helpers/destroy-app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/helpers/destroy-app.js b/tests/helpers/destroy-app.js index 5d7454fa17..20b018ecb0 100644 --- a/tests/helpers/destroy-app.js +++ b/tests/helpers/destroy-app.js @@ -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'); }