Skip to content

Commit

Permalink
add missing shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
bobzilladev committed May 22, 2024
1 parent ae760af commit f824605
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions __test__/connect.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,15 @@ test.serial("forward bad domain", async (t) => {
{ instanceOf: Error }
);
t.is("ERR_NGROK_326", error.errorCode, error.message);

await shutdown(null, httpServer.socket);
});

// serial to not run into double error on a session issue
test.serial("root_cas", async (t) => {
// remove any lingering sessions
await ngrok.disconnect();

const httpServer = await makeHttp();
ngrok.authtoken(process.env["NGROK_AUTHTOKEN"]);

Expand Down

0 comments on commit f824605

Please sign in to comment.