diff options
Diffstat (limited to 'test/bun.js/body-stream.test.ts')
-rw-r--r-- | test/bun.js/body-stream.test.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/bun.js/body-stream.test.ts b/test/bun.js/body-stream.test.ts index 0a44246b0..5f505143c 100644 --- a/test/bun.js/body-stream.test.ts +++ b/test/bun.js/body-stream.test.ts @@ -1,10 +1,8 @@ // @ts-nocheck import { file, gc, serve, ServeOptions } from "bun"; -import { afterEach, describe, expect, it, test } from "bun:test"; +import { afterAll, afterEach, describe, expect, it, test } from "bun:test"; import { readFileSync } from "fs"; -// afterEach(() => Bun.gc(true)); - var port = 4021; { @@ -215,6 +213,11 @@ async function runInServer( } } +afterAll(() => { + existingServer && existingServer.close(); + existingServer = null; +}); + function fillRepeating(dstBuffer, start, end) { let len = dstBuffer.length, sLen = end - start, |