From 4fa8af486fbe0e175fdfee8b59beb7a40e8aa6c9 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 6 Jul 2026 22:44:30 -0400 Subject: [PATCH] perf(test): drop redundant benchmark cli spawn --- test/scripts/bench-gateway-restart.test.ts | 28 ---------------------- 1 file changed, 28 deletions(-) diff --git a/test/scripts/bench-gateway-restart.test.ts b/test/scripts/bench-gateway-restart.test.ts index b95ad21186c0..828fc8d5965a 100644 --- a/test/scripts/bench-gateway-restart.test.ts +++ b/test/scripts/bench-gateway-restart.test.ts @@ -35,7 +35,6 @@ function readRestartIntentRow(env: NodeJS.ProcessEnv) { describe("gateway restart benchmark script", () => { let helpResult: ReturnType; let unknownArgsResult: ReturnType; - let duplicateCaseResult: ReturnType; beforeAll(() => { helpResult = spawnSync( @@ -62,26 +61,6 @@ describe("gateway restart benchmark script", () => { }, }, ); - duplicateCaseResult = spawnSync( - process.execPath, - [ - "--import", - "tsx", - "scripts/bench-gateway-restart.ts", - "--case", - "skipChannels", - "--case", - "skipChannels", - ], - { - cwd: process.cwd(), - encoding: "utf8", - env: { - ...process.env, - NODE_NO_WARNINGS: "1", - }, - }, - ); }); it("prints help without running benchmark cases", () => { @@ -144,13 +123,6 @@ describe("gateway restart benchmark script", () => { expect(unknownArgsResult.stderr).not.toContain("\n at "); }); - it("reports duplicate benchmark cases without a stack trace", () => { - expect(duplicateCaseResult.status).toBe(1); - expect(duplicateCaseResult.stdout).toBe(""); - expect(duplicateCaseResult.stderr.trim()).toBe('Duplicate --case "skipChannels"'); - expect(duplicateCaseResult.stderr).not.toContain("\n at "); - }); - it("guards the SIGUSR1 restart benchmark on Windows", () => { expect(() => testing.ensureSupportedRestartPlatform("linux")).not.toThrow(); expect(() => testing.ensureSupportedRestartPlatform("darwin")).not.toThrow();