Skip to content

Commit

Permalink
less hard shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis committed Aug 26, 2024
1 parent 69f8cb0 commit 1829f51
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"vue-hot-reload-api": "^2.3.4",
"vue-i18n": "^9.2.2",
"vue-router": "^4.0.12",
"wait-on": "^7.0.1"
"wait-on": "^8.0.0"
},
"engines": {
"npm": ">=8.0.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/evcc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const BINARY = "./evcc";

const waitOpts = {
timeout: 20000,

log: true,
};

Expand Down Expand Up @@ -109,8 +110,7 @@ async function _stop(instance) {
log("shutting down evcc hard", { port });
// hard kill, only use of normal shutdown doesn't work
instance.kill("SIGTERM");
await waitOn({ resources: [`tcp:${port}`], reverse: true, ...waitOpts });

await waitOn({ resources: [`tcp:${port}`], reverse: true, delay: 500, ...waitOpts });
log("evcc is down", { port });
return;
}
Expand Down

0 comments on commit 1829f51

Please sign in to comment.