diff --git a/js/src/tests/batch_client.test.ts b/js/src/tests/batch_client.test.ts index 4d05b9e2c..43c85c15d 100644 --- a/js/src/tests/batch_client.test.ts +++ b/js/src/tests/batch_client.test.ts @@ -176,7 +176,7 @@ describe.each(ENDPOINT_TYPES)( await new Promise((resolve) => setTimeout(resolve, 300)); }); - it.only("Create + update batching should merge into a single call", async () => { + it("Create + update batching should merge into a single call", async () => { const client = new Client({ apiKey: "test-api-key", autoBatchTracing: true, @@ -298,7 +298,7 @@ describe.each(ENDPOINT_TYPES)( end_time: endTime, }); - await new Promise((resolve) => setTimeout(resolve, 100)); + await client.awaitPendingTraceBatches(); expect(serverInfoFailedOnce).toBe(true); @@ -857,7 +857,7 @@ describe.each(ENDPOINT_TYPES)( end_time: endTime, }); - await new Promise((resolve) => setTimeout(resolve, 100)); + await client.awaitPendingTraceBatches(); const calledRequestParam: any = callSpy.mock.calls[0][2]; expect(await parseMockRequestBody(calledRequestParam?.body)).toEqual({