From a0aadca5583670a32597c98e517e7ee1a736929a Mon Sep 17 00:00:00 2001 From: Shamiul Mowla Date: Fri, 13 Sep 2024 13:05:34 -0400 Subject: [PATCH] Remove edge and add additional time before assertion. --- test/functional/specs/Migration/C8085776.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/functional/specs/Migration/C8085776.js b/test/functional/specs/Migration/C8085776.js index 04077ffa1..b007ce24c 100644 --- a/test/functional/specs/Migration/C8085776.js +++ b/test/functional/specs/Migration/C8085776.js @@ -56,14 +56,18 @@ test( "C8085776: At.js 2.x to Web SDK - Assert same session ID, edge cluster are used " + "for both of the requests interact and delivery API", async () => { - // Wait for a short period to allow for asynchronous requests - await t.wait(2000); + // Increase wait time + await t.wait(5000); const requestCount = await networkLogger.targetDeliveryEndpointLogs.count( () => true, ); console.log(`Number of Target delivery requests: ${requestCount}`); + // Log the contents of the requests for debugging + const requests = networkLogger.targetDeliveryEndpointLogs.requests; + console.log("Target delivery requests:", JSON.stringify(requests, null, 2)); + await t .expect(requestCount) .gte(1, "Expected at least one Target delivery request");