Skip to content

Commit 38f1421

Browse files
committed
Await runScriptInSandbox.
1 parent 9144ea4 commit 38f1421

File tree

7 files changed

+7
-7
lines changed
  • dev-packages/browser-integration-tests/suites

7 files changed

+7
-7
lines changed

dev-packages/browser-integration-tests/suites/public-api/instrumentation/onError/non-string-arg/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ sentryTest(
1818

1919
const errorEventPromise = getFirstSentryEnvelopeRequest<Event>(page);
2020

21-
runScriptInSandbox(page, {
21+
await runScriptInSandbox(page, {
2222
content: `
2323
throw {
2424
type: 'Error',

dev-packages/browser-integration-tests/suites/public-api/instrumentation/onError/rethrown/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ sentryTest(
1818

1919
const errorEventsPromise = getMultipleSentryEnvelopeRequests<Event>(page, 2);
2020

21-
runScriptInSandbox(page, {
21+
await runScriptInSandbox(page, {
2222
content: `
2323
try {
2424
try {

dev-packages/browser-integration-tests/suites/public-api/instrumentation/onError/syntax-errors/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sentryTest('should catch syntax errors', async ({ getLocalTestPath, page, browse
1616

1717
const errorEventPromise = getFirstSentryEnvelopeRequest<Event>(page);
1818

19-
runScriptInSandbox(page, {
19+
await runScriptInSandbox(page, {
2020
content: `
2121
foo{}; // SyntaxError
2222
`,

dev-packages/browser-integration-tests/suites/public-api/instrumentation/onError/thrown-errors/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sentryTest('should catch thrown errors', async ({ getLocalTestPath, page, browse
1616

1717
const errorEventPromise = getFirstSentryEnvelopeRequest<Event>(page);
1818

19-
runScriptInSandbox(page, {
19+
await runScriptInSandbox(page, {
2020
content: `
2121
throw new Error('realError');
2222
`,

dev-packages/browser-integration-tests/suites/public-api/instrumentation/onError/thrown-strings/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sentryTest('should catch thrown strings', async ({ getLocalTestPath, page, brows
1616

1717
const errorEventPromise = getFirstSentryEnvelopeRequest<Event>(page);
1818

19-
runScriptInSandbox(page, {
19+
await runScriptInSandbox(page, {
2020
content: `
2121
throw 'stringError';
2222
`,

dev-packages/browser-integration-tests/suites/public-api/startSpan/error-sync/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ sentryTest(
2626

2727
const errorEventsPromise = getMultipleSentryEnvelopeRequests<Event>(page, 2);
2828

29-
runScriptInSandbox(page, {
29+
await runScriptInSandbox(page, {
3030
content: `
3131
function run() {
3232
Sentry.startSpan({ name: 'parent_span' }, () => {

dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/error/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sentryTest(
2525

2626
const errorEventsPromise = getMultipleSentryEnvelopeRequests<Event>(page, 2);
2727

28-
runScriptInSandbox(page, {
28+
await runScriptInSandbox(page, {
2929
content: `
3030
throw new Error('Error during pageload');
3131
`,

0 commit comments

Comments
 (0)