Skip to content

Commit

Permalink
fix: nonstop server listening when testing done
Browse files Browse the repository at this point in the history
  • Loading branch information
JadlionHD committed Jul 6, 2024
1 parent 5e8c7a0 commit 9059491
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/basic-example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ client.on("ready", () => {
console.log(
`ENet server: port ${client.config.enet.port} on ${client.config.enet.ip}\nHttps server: port ${client.config.https.httpsPort} on ${client.config.https.ip}`
);
// Success
process.exit(1);
});

client.on("error", (err) => {
Expand Down

0 comments on commit 9059491

Please sign in to comment.