Skip to content

Commit

Permalink
Merge 05f4229 into 1d0c716
Browse files Browse the repository at this point in the history
  • Loading branch information
Pchelolo committed Jun 3, 2019
2 parents 1d0c716 + 05f4229 commit 1b2e97d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/features/specification/monitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ describe('Monitoring tests', function() {
this.timeout(20000);
const server = new Server();
before(() => server.start());
after(() => server.stop());

it('should get the spec', () => {
return P.each([{
Expand All @@ -181,6 +182,8 @@ describe('Monitoring tests', function() {
})
.then((spec) => {
const defineTests = () => {
before(() => server.start());
after(() => server.stop());
constructTests(spec, options, server).forEach((testCase) => {
it(testCase.title, () => {
const missingParam = /\/{(.+)}/.exec(testCase.request.uri);
Expand All @@ -200,7 +203,6 @@ describe('Monitoring tests', function() {
};
parallel(`Monitoring routes, ${options.domain} domain, new content`, defineTests);
parallel(`Monitoring routes, ${options.domain} domain, from storage`, defineTests);
after(() => server.stop());
});
});
});
Expand Down

0 comments on commit 1b2e97d

Please sign in to comment.