From 5924bbfef15224d108b85facd17c83c8d5728ecb Mon Sep 17 00:00:00 2001 From: devsh4 Date: Mon, 2 Jan 2023 09:25:16 -0500 Subject: [PATCH] ISSUE-1841: Fix require statement for perf_hooks --- modules/runners/lambdas/runners/src/aws/runners.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/runners/lambdas/runners/src/aws/runners.test.ts b/modules/runners/lambdas/runners/src/aws/runners.test.ts index 6910511c0a..c129ccd657 100644 --- a/modules/runners/lambdas/runners/src/aws/runners.test.ts +++ b/modules/runners/lambdas/runners/src/aws/runners.test.ts @@ -3,7 +3,7 @@ import { EC2 } from 'aws-sdk'; import ScaleError from './../scale-runners/ScaleError'; import { RunnerInfo, RunnerInputParameters, createRunner, listEC2Runners, terminateRunner } from './runners'; -const { performance } = require('perf_hooks'); +import { performance } from 'perf_hooks'; const mockEC2 = { describeInstances: jest.fn(), createFleet: jest.fn(), terminateInstances: jest.fn() }; const mockSSM = { putParameter: jest.fn(), getParameter: jest.fn() };