Skip to content

Commit 757de5d

Browse files
committed
fix(e2e/openapi-subscriptions): avoid race condition
1 parent c011f58 commit 757de5d

File tree

1 file changed

+2
-2
lines changed
  • e2e/openapi-subscriptions/services/api

1 file changed

+2
-2
lines changed

e2e/openapi-subscriptions/services/api/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ const app = createRouter().route({
99
handler(req) {
1010
const subscriptionId = Date.now().toString();
1111
req.json().then(async ({ callbackUrl }) => {
12-
for (let i = 0; i < 3; i++) {
12+
for (let i = 0; i < 10; i++) {
1313
const body = JSON.stringify({
1414
timestamp: new Date().toJSON(),
1515
userData: 'RANDOM_DATA',
1616
});
1717
const fullCallbackUrl = urljoin(callbackUrl, subscriptionId);
18-
console.info(`Webhook ping ${i + 1} out of 3 -> `, fullCallbackUrl, body);
18+
console.info(`Webhook ping ${i + 1} out of 10 -> `, fullCallbackUrl, body);
1919
const res = await fetch(fullCallbackUrl, {
2020
method: 'POST',
2121
headers: {

0 commit comments

Comments
 (0)