From 9e606f389c64258f23e0194a081a020dcd91f8b7 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 2 Feb 2018 09:51:44 -0800 Subject: [PATCH] Always shutdown the mirage server --- ui/tests/integration/job-page/parts/children-test.js | 4 ++++ .../integration/job-page/parts/placement-failures-test.js | 4 ++++ ui/tests/integration/job-page/parts/summary-test.js | 4 ++++ ui/tests/integration/job-page/parts/task-groups-test.js | 1 - 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ui/tests/integration/job-page/parts/children-test.js b/ui/tests/integration/job-page/parts/children-test.js index aecc32c7d50..9b7149d4104 100644 --- a/ui/tests/integration/job-page/parts/children-test.js +++ b/ui/tests/integration/job-page/parts/children-test.js @@ -16,6 +16,10 @@ moduleForComponent('job-page/parts/children', 'Integration | Component | job-pag this.server = startMirage(); this.server.create('namespace'); }, + afterEach() { + this.server.shutdown(); + window.localStorage.clear(); + }, }); const props = (job, options = {}) => diff --git a/ui/tests/integration/job-page/parts/placement-failures-test.js b/ui/tests/integration/job-page/parts/placement-failures-test.js index d774675404b..844e51c5b42 100644 --- a/ui/tests/integration/job-page/parts/placement-failures-test.js +++ b/ui/tests/integration/job-page/parts/placement-failures-test.js @@ -19,6 +19,10 @@ moduleForComponent( this.server = startMirage(); this.server.create('namespace'); }, + afterEach() { + this.server.shutdown(); + window.localStorage.clear(); + }, } ); diff --git a/ui/tests/integration/job-page/parts/summary-test.js b/ui/tests/integration/job-page/parts/summary-test.js index d04d2e82ef2..186c4ffcfe0 100644 --- a/ui/tests/integration/job-page/parts/summary-test.js +++ b/ui/tests/integration/job-page/parts/summary-test.js @@ -15,6 +15,10 @@ moduleForComponent('job-page/parts/summary', 'Integration | Component | job-page this.server = startMirage(); this.server.create('namespace'); }, + afterEach() { + this.server.shutdown(); + window.localStorage.clear(); + }, }); test('jobs with children use the children diagram', function(assert) { diff --git a/ui/tests/integration/job-page/parts/task-groups-test.js b/ui/tests/integration/job-page/parts/task-groups-test.js index 260db31c9d9..f9ac811f84f 100644 --- a/ui/tests/integration/job-page/parts/task-groups-test.js +++ b/ui/tests/integration/job-page/parts/task-groups-test.js @@ -20,7 +20,6 @@ moduleForComponent( this.server = startMirage(); this.server.create('namespace'); }, - afterEach() { this.server.shutdown(); },