8000 ref(nextjs): Change integration test timings to be less flaky (#3949) · GinMu/sentry-javascript@de147dd · GitHub
[go: up one dir, main page]

Skip to content

Commit de147dd

Browse files
authored
ref(nextjs): Change integration test timings to be less flaky (getsentry#3949)
1 parent 1d1b41c commit de147dd

File tree

8 files changed

+13
-10
lines changed

8 files changed

+13
-10
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/types/global" />
33
/// <reference types="next/image-types/global" />
4+
5+
// NOTE: This file should not be edited
6+
// see https://nextjs.org/docs/basic-features/typescript for more information.

packages/nextjs/test/integration/test/client/sessionNavigate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = async ({ page, url, requests }) => {
1010
errors: 0,
1111
});
1212

13-
await sleep(100);
13+
await sleep(250);
1414

1515
await waitForAll([
1616
page.click('a#alsoHealthy'),
@@ -24,15 +24,15 @@ module.exports = async ({ page, url, requests }) => {
2424
errors: 0,
2525
});
2626

27-
await sleep(100);
27+
await sleep(250);
2828

2929
expectSession(requests.sessions[2], {
3030
init: true,
3131
status: 'ok',
3232
errors: 0,
3333
});
3434

35-
await sleep(100);
35+
await sleep(250);
3636

3737
await waitForAll([
3838
page.click('a#healthy'),

packages/nextjs/test/integration/test/client/tracingNavigate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = async ({ page, url, requests }) => {
1515
},
1616
});
1717

18-
await sleep(100);
18+
await sleep(250);
1919

2020
await page.click('a#alsoHealthy');
2121
await page.waitForRequest(isTransactionRequest);
@@ -33,7 +33,7 @@ module.exports = async ({ page, url, requests }) => {
3333
},
3434
});
3535

36-
await sleep(100);
36+
await sleep(250);
3737

3838
await page.click('a#healthy');
3939
await page.waitForRequest(isTransactionRequest);

packages/nextjs/test/integration/test/server/errorApiEndpoint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = async ({ url: urlBase, argv }) => {
4949
);
5050

5151
await getAsync(url);
52-
await sleep(100);
52+
await sleep(250);
5353

5454
assert.ok(capturedErrorRequest.isDone(), 'Did not intercept expected error request');
5555
assert.ok(capturedTransactionRequest.isDone(), 'Did not intercept expected transaction request');

packages/nextjs/test/integration/test/server/errorServerSideProps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = async ({ url: urlBase, argv }) => {
2929
);
3030

3131
await getAsync(url);
32-
await sleep(100);
32+
await sleep(250);
3333

3434
assert.ok(capturedRequest.isDone(), 'Did not intercept expected request');
3535
};

packages/nextjs/test/integration/test/server/tracing200.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = async ({ url: urlBase, argv }) => {
2626
);
2727

2828
await getAsync(url);
29-
await sleep(100);
29+
await sleep(250);
3030

3131
assert.ok(capturedRequest.isDone(), 'Did not intercept expected request');
3232
};

packages/nextjs/test/integration/test/server/tracing500.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = async ({ url: urlBase, argv }) => {
2525
);
2626

2727
await getAsync(url);
28-
await sleep(100);
28+
await sleep(250);
2929

3030
assert.ok(capturedRequest.isDone(), 'Did not intercept expected request');
3131
};

packages/nextjs/test/integration/test/server/tracingHttp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = async ({ url: urlBase, argv }) => {
4040
);
4141

4242
await getAsync(url);
43-
await sleep(100);
43+
await sleep(250);
4444

4545
assert.ok(capturedRequest.isDone(), 'Did not intercept expected request');
4646
};

0 commit comments

Comments
 (0)
0