Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Nov 17, 2017
1 parent d160e61 commit 1fcdf44
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.0-semantic-release",
"description": "koa backed http server",
"keywords": ["kronos-service"],
"main": "dist/module.js",
"module": "src/ServiceKOA.js",
"main": "dist/service-koa.js",
"module": "src/service-koa.js",
"scripts": {
"cover": "nyc --temp-directory build/nyc ava",
"test": "ava",
Expand Down
12 changes: 9 additions & 3 deletions tests/failure-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ test('service-koa failures with already in use port', async t => {
);

await ks1.start();
await ks2.start();

t.is(ks1.state, 'running');
t.is(ks2.state, 'running');

try {
await ks2.start();
} catch (e) {}

t.is(ks2.state, 'failed');

ks1.stop();
ks2.stop();
});

0 comments on commit 1fcdf44

Please sign in to comment.