cleanup async encoders after tests
This commit is contained in:
parent
46724aa3e6
commit
fd19be2bfe
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { ChunkWithoutID } from "../..";
|
||||
import { countTokensAsync } from "../../llm/countTokens";
|
||||
import { cleanupAsyncEncoders, countTokensAsync } from "../../llm/countTokens";
|
||||
import { codeChunker } from "./code";
|
||||
|
||||
async function genToArr<T>(generator: AsyncGenerator<T>): Promise<T[]> {
|
||||
|
|
@ -85,6 +85,8 @@ async function collectContents(
|
|||
}
|
||||
|
||||
describe("codeChunker function definition", () => {
|
||||
afterAll(async () => await cleanupAsyncEncoders());
|
||||
|
||||
test("class methods never exceed maxChunkSize", async () => {
|
||||
const body = Array.from(
|
||||
{ length: 200 },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue