Skip to content

Commit 814ccb9

Browse files
committed
fix lint
1 parent c67877e commit 814ccb9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/unit/telemetry.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jest.mock("../../src/telemetry/eventCache.js");
1717
const MockEventCache = EventCache as jest.MockedClass<typeof EventCache>;
1818

1919
const nextTick = () => new Promise((resolve) => process.nextTick(resolve));
20-
const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
2120

2221
describe("Telemetry", () => {
2322
const machineId = "test-machine-id";
@@ -271,11 +270,11 @@ describe("Telemetry", () => {
271270
);
272271
});
273272

274-
it("should timeout if machine ID resolution takes too long", async () => {
273+
it("should timeout if machine ID resolution takes too long", () => {
275274
const loggerSpy = jest.spyOn(logger, "debug");
276275

277276
jest.useFakeTimers();
278-
277+
279278
telemetry = Telemetry.create(session, config, {
280279
...telemetryConfig,
281280
getRawMachineId: () => new Promise(() => {}), // Never resolves
@@ -288,7 +287,7 @@ describe("Telemetry", () => {
288287
jest.advanceTimersByTime(5000);
289288

290289
jest.useRealTimers();
291-
290+
292291
expect(loggerSpy).toHaveBeenCalledTimes(2);
293292

294293
expect(loggerSpy).toHaveBeenNthCalledWith(

0 commit comments

Comments
 (0)