Skip to content

Commit

Permalink
fix: stop event loop when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
JadlionHD committed Oct 4, 2024
1 parent 4a6e5d7 commit 8789761
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/basic-example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const client = new Client({

client.on("ready", () => {
console.log(`ENet server: port ${client.config.enet.port} on ${client.config.enet.ip}`);
process.exit(0); // Stop event loop when testing
});

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

0 comments on commit 8789761

Please sign in to comment.