Elffuss BraidHub

kikocis/continue public

cleanup async encoders after tests
Changeset79db7a83c7e6bcac769a225f2d68b6c15248e8342ce1ce55a0fd0d9af866062f
Authoruinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-08-18 18:31 +05:30
Committeruinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-08-18 18:31 +05:30
Parentsddc8b505712b

Browse the files at this changeset

1 file changed

modified core/indexing/chunk/code.test.ts +3 −1
@@ -1,5 +1,5 @@
11 import { ChunkWithoutID } from "../..";
2-import { countTokensAsync } from "../../llm/countTokens";
2+import { cleanupAsyncEncoders, countTokensAsync } from "../../llm/countTokens";
33 import { codeChunker } from "./code";
44
55 async function genToArr<T>(generator: AsyncGenerator<T>): Promise<T[]> {
@@ -85,6 +85,8 @@
8585 }
8686
8787 describe("codeChunker function definition", () => {
88+ afterAll(async () => await cleanupAsyncEncoders());
89+
8890 test("class methods never exceed maxChunkSize", async () => {
8991 const body = Array.from(
9092 { length: 200 },