Skip to content

Commit

Permalink
Always shutdown the mirage server
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoEatingFuzz committed Feb 6, 2018
1 parent de27385 commit 9e606f3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ui/tests/integration/job-page/parts/children-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ moduleForComponent(
this.server = startMirage();
this.server.create('namespace');
},
afterEach() {
this.server.shutdown();
window.localStorage.clear();
},
}
);

Expand Down
4 changes: 4 additions & 0 deletions ui/tests/integration/job-page/parts/summary-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion ui/tests/integration/job-page/parts/task-groups-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ moduleForComponent(
this.server = startMirage();
this.server.create('namespace');
},

afterEach() {
this.server.shutdown();
},
Expand Down

0 comments on commit 9e606f3

Please sign in to comment.