Skip to content

Commit 5c5b240

Browse files
committed
fix lint
1 parent be0ffb9 commit 5c5b240

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/google-cloud-serverless/test/gcpfunction/cloud_event.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ describe('wrapCloudEventFunction', () => {
4444

4545
function handleCloudEvent(fn: CloudEventFunctionWithCallback): Promise<any> {
4646
return new Promise((resolve, reject) => {
47+
// eslint-disable-next-line deprecation/deprecation
4748
const d = domain.create();
48-
// d.on('error', () => res.end());
4949
const context = {
5050
type: 'event.type',
5151
};

packages/google-cloud-serverless/test/gcpfunction/events.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ describe('wrapEventFunction', () => {
4545

4646
function handleEvent(fn: EventFunctionWithCallback): Promise<any> {
4747
return new Promise((resolve, reject) => {
48+
// eslint-disable-next-line deprecation/deprecation
4849
const d = domain.create();
49-
// d.on('error', () => res.end());
5050
const context = {
5151
eventType: 'event.type',
5252
resource: 'some.resource',

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ describe('GCPFunction', () => {
5858
headers = { ...headers, ...trace_headers };
5959
}
6060
return new Promise((resolve, _reject) => {
61+
// eslint-disable-next-line deprecation/deprecation
6162
const d = domain.create();
6263
const req = {
6364
method: 'POST',

0 commit comments

Comments
 (0)