Skip to content

Commit 13b8b62

Browse files
committed
fix type errors in serverless tests
1 parent f415e75 commit 13b8b62

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/serverless/src/awslambda.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export function wrapHandler<TEvent, TResult>(
279279
scope.setTag('timeout', humanReadableTimeout);
280280
captureMessage(`Possible function timeout: ${context.functionName}`, Sentry.Severity.Warning);
281281
});
282-
}, timeoutWarningDelay);
282+
}, timeoutWarningDelay) as unknown as NodeJS.Timeout;
283283
}
284284

285285
// Applying `sentry-trace` to context

packages/serverless/test/google-cloud-http.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ describe('GoogleCloudHttp tracing', () => {
6262
op: 'gcloud.http.bigquery',
6363
description: 'POST /jobs',
6464
});
65+
// @ts-ignore see "Why @ts-ignore" note
6566
expect(Sentry.fakeTransaction.startChild).toBeCalledWith({
6667
op: 'gcloud.http.bigquery',
6768
description: expect.stringMatching(new RegExp('^GET /queries/.+')),

0 commit comments

Comments
 (0)