From 8789761587c3d1ac26eb791242ac23a3b8649bbb Mon Sep 17 00:00:00 2001 From: Hendra Gunawan <48410066+JadlionHD@users.noreply.github.com> Date: Fri, 4 Oct 2024 23:16:54 +0700 Subject: [PATCH] fix: stop event loop when testing --- test/basic-example/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/basic-example/index.js b/test/basic-example/index.js index 3e4927e..fca01ef 100644 --- a/test/basic-example/index.js +++ b/test/basic-example/index.js @@ -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) => {