Skip to content

Commit fead536

Browse files
committed
fix test to handle retries
1 parent 89e24f2 commit fead536

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/integration-tests/fixtures/errorhandling/error-no-handler.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ describe("Error throwing by default (no errorHandler)", () => {
3737
"doesn't throw when Sentry server responds with error code for %s",
3838
async (bundler) => {
3939
const buildProcess = spawn("yarn", ["ts-node", path.join(__dirname, `build-${bundler}.ts`)], {
40-
env: { ...process.env, FAKE_SENTRY_PORT },
40+
env: {
41+
...process.env,
42+
FAKE_SENTRY_PORT,
43+
// only retry once to avoid the test from timing out due to retries
44+
SENTRY_HTTP_MAX_RETRIES: "1",
45+
},
4146
stdio: "ignore", // <-- set to "inherit" to get build output. Deactivated to avoid spamming test logs.
4247
shell: true,
4348
});

0 commit comments

Comments
 (0)