diff --git a/dev-packages/node-core-integration-tests/suites/public-api/OnUncaughtException/mimic-native-behaviour-no-additional-listener-test-script.js b/dev-packages/node-core-integration-tests/suites/public-api/OnUncaughtException/mimic-native-behaviour-no-additional-listener-test-script.js index bc8fc1f8c898..117e84b41130 100644 --- a/dev-packages/node-core-integration-tests/suites/public-api/OnUncaughtException/mimic-native-behaviour-no-additional-listener-test-script.js +++ b/dev-packages/node-core-integration-tests/suites/public-api/OnUncaughtException/mimic-native-behaviour-no-additional-listener-test-script.js @@ -13,9 +13,10 @@ const client = Sentry.init({ setupOtel(client); setTimeout(() => { - // This should not be called because the script throws before this resolves + // This should not be called because the script throws before this resolves. + // Using 3000ms to account for the SDK's 2000ms shutdown timeout + buffer. process.stdout.write("I'm alive!"); process.exit(0); -}, 500); +}, 3000); throw new Error(); diff --git a/dev-packages/node-core-integration-tests/suites/public-api/OnUncaughtException/no-additional-listener-test-script.js b/dev-packages/node-core-integration-tests/suites/public-api/OnUncaughtException/no-additional-listener-test-script.js index 513eb3abc7cb..0d7a8a4d7604 100644 --- a/dev-packages/node-core-integration-tests/suites/public-api/OnUncaughtException/no-additional-listener-test-script.js +++ b/dev-packages/node-core-integration-tests/suites/public-api/OnUncaughtException/no-additional-listener-test-script.js @@ -8,9 +8,10 @@ const client = Sentry.init({ setupOtel(client); setTimeout(() => { - // This should not be called because the script throws before this resolves + // This should not be called because the script throws before this resolves. + // Using 3000ms to account for the SDK's 2000ms shutdown timeout + buffer. process.stdout.write("I'm alive!"); process.exit(0); -}, 500); +}, 3000); throw new Error(); diff --git a/dev-packages/node-integration-tests/suites/public-api/OnUncaughtException/mimic-native-behaviour-no-additional-listener-test-script.js b/dev-packages/node-integration-tests/suites/public-api/OnUncaughtException/mimic-native-behaviour-no-additional-listener-test-script.js index e1a78cce10c8..a0e1480596e4 100644 --- a/dev-packages/node-integration-tests/suites/public-api/OnUncaughtException/mimic-native-behaviour-no-additional-listener-test-script.js +++ b/dev-packages/node-integration-tests/suites/public-api/OnUncaughtException/mimic-native-behaviour-no-additional-listener-test-script.js @@ -10,9 +10,10 @@ Sentry.init({ }); setTimeout(() => { - // This should not be called because the script throws before this resolves + // This should not be called because the script throws before this resolves. + // Using 3000ms to account for the SDK's 2000ms shutdown timeout + buffer. process.stdout.write("I'm alive!"); process.exit(0); -}, 500); +}, 3000); throw new Error(); diff --git a/dev-packages/node-integration-tests/suites/public-api/OnUncaughtException/no-additional-listener-test-script.js b/dev-packages/node-integration-tests/suites/public-api/OnUncaughtException/no-additional-listener-test-script.js index fcff5962b629..8cc7c44ef20f 100644 --- a/dev-packages/node-integration-tests/suites/public-api/OnUncaughtException/no-additional-listener-test-script.js +++ b/dev-packages/node-integration-tests/suites/public-api/OnUncaughtException/no-additional-listener-test-script.js @@ -5,9 +5,10 @@ Sentry.init({ }); setTimeout(() => { - // This should not be called because the script throws before this resolves + // This should not be called because the script throws before this resolves. + // Using 3000ms to account for the SDK's 2000ms shutdown timeout + buffer. process.stdout.write("I'm alive!"); process.exit(0); -}, 500); +}, 3000); throw new Error();