Skip to content

Commit

Permalink
Remove edge and add additional time before assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
shammowla committed Sep 13, 2024
1 parent e8486e3 commit a0aadca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/functional/specs/Migration/C8085776.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a0aadca

Please sign in to comment.