From 5e57d909b95325abee011be9e8e302b8ff3bf8e3 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Sat, 26 Oct 2024 17:31:41 -0700 Subject: [PATCH 1/2] Remove focused test --- js/src/tests/batch_client.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/tests/batch_client.test.ts b/js/src/tests/batch_client.test.ts index 4d05b9e2c..3221b813d 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, From 609ac8c5b6524567e0c6dced9082ac4062c285df Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Sat, 26 Oct 2024 17:58:18 -0700 Subject: [PATCH 2/2] Fix test --- js/src/tests/batch_client.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/tests/batch_client.test.ts b/js/src/tests/batch_client.test.ts index 3221b813d..43c85c15d 100644 --- a/js/src/tests/batch_client.test.ts +++ b/js/src/tests/batch_client.test.ts @@ -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({