Skip to content

Commit 0329e1e

Browse files
committed
fix tests
1 parent 062e09d commit 0329e1e

File tree

5 files changed

+6
-9
lines changed
  • dev-packages/node-integration-tests/suites/express
  • packages/node/src/integrations/tracing/hapi

5 files changed

+6
-9
lines changed

dev-packages/node-integration-tests/suites/express/handle-error-scope-data-loss/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test('withScope scope is NOT applied to thrown error caught by global handler',
2222
values: [
2323
{
2424
mechanism: {
25-
type: 'middleware',
25+
type: 'auto.middleware.express',
2626
handled: false,
2727
},
2828
type: 'Error',
@@ -61,7 +61,7 @@ test('http requestisolation scope is applied to thrown error caught by global ha
6161
values: [
6262
{
6363
mechanism: {
64-
type: 'middleware',
64+
type: 'auto.middleware.express',
6565
handled: false,
6666
},
6767
type: 'Error',
@@ -109,7 +109,7 @@ test('withIsolationScope scope is NOT applied to thrown error caught by global h
109109
values: [
110110
{
111111
mechanism: {
112-
type: 'middleware',
112+
type: 'auto.middleware.express',
113113
handled: false,
114114
},
115115
type: 'Error',

dev-packages/node-integration-tests/suites/express/handle-error-tracesSampleRate-0/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test('should capture and send Express controller error with txn name if tracesSa
1313
values: [
1414
{
1515
mechanism: {
16-
type: 'middleware',
16+
type: 'auto.middleware.express',
1717
handled: false,
1818
},
1919
type: 'Error',

dev-packages/node-integration-tests/suites/express/handle-error-tracesSampleRate-unset/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test('should capture and send Express controller error if tracesSampleRate is no
1414
values: [
1515
{
1616
mechanism: {
17-
type: 'middleware',
17+
type: 'auto.middleware.express',
1818
handled: false,
1919
},
2020
type: 'Error',

dev-packages/node-integration-tests/suites/express/handle-error/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test('should capture and send Express controller error with txn name if tracesSa
1818
values: [
1919
{
2020
mechanism: {
21-
type: 'middleware',
21+
type: 'auto.middleware.express',
2222
handled: false,
2323
},
2424
type: 'Error',

packages/node/src/integrations/tracing/hapi/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ function sendErrorToSentry(errorData: object): void {
5656
mechanism: {
5757
type: 'auto.function.hapi',
5858
handled: false,
59-
data: {
60-
function: 'hapiErrorPlugin',
61-
},
6259
},
6360
});
6461
}

0 commit comments

Comments
 (0)