Skip to content

Commit 34f9c6d

Browse files
committed
shorten timestamps
1 parent 4b6f920 commit 34f9c6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/remix/test/integration/app/routes/scope-bleed/$id.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as Sentry from '@sentry/remix';
55
export const loader: LoaderFunction = async ({ params: { id } }) => {
66
// Set delay to simulate requests at the same time
77
const randomNum = Math.floor(Math.random() * 15) + 1;
8-
await new Promise(resolve => setTimeout(resolve, 4000 - (parseInt(id || '', 10) * 1000 - randomNum)));
8+
await new Promise(resolve => setTimeout(resolve, 400 - (parseInt(id || '', 10) * 100 - randomNum)));
99
Sentry.setTag(`tag${id}`, id);
1010
return json({ test: 'test' });
1111
};

packages/remix/test/integration/test/server/loader.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ describe.each(['builtin', 'express'])('Remix API Loaders with adapter = %s', ada
147147
// See packages/remix/test/integration/app/routes/scope-bleed/$id.tsx
148148
// for server-side set up.
149149
const randomNum = Math.floor(Math.random() * 15) + 1;
150-
await new Promise(resolve => setTimeout(resolve, id * 1000 - 1000 + randomNum));
150+
await new Promise(resolve => setTimeout(resolve, id * 100 - 100 + randomNum));
151151
const envelope = await getEnvelopeRequest(url);
152152
const transaction = envelope[2];
153153

0 commit comments

Comments
 (0)