diff --git a/test/mod.test.ts b/test/mod.test.ts index 9ba38479a..4cc7aab0b 100644 --- a/test/mod.test.ts +++ b/test/mod.test.ts @@ -1,10 +1,3 @@ -import { - deleteChannel, - deleteRole, - deleteServer, - getChannel, -} from "../src/api/handlers/guild.ts"; -import { eventHandlers } from "../src/bot.ts"; import { addReaction, assertEquals, @@ -18,9 +11,13 @@ import { createGuildRole, createServer, delay, + deleteChannel, deleteMessageByID, + deleteRole, + deleteServer, editChannel, editRole, + getChannel, getMessage, getPins, Guild, @@ -37,6 +34,7 @@ import { export const defaultTestOptions: Partial = { sanitizeOps: false, sanitizeResources: false, + sanitizeExit: false, }; // Temporary data @@ -340,9 +338,9 @@ Deno.test({ // Forcefully exit the Deno process once all tests are done. Deno.test({ - name: "[main] close the websocket connection", + name: "[main] exit the process forcefully", fn() { - closeWS(); + Deno.exit(); }, ...defaultTestOptions, });