diff --git a/src/commands/doctor.falls-back-legacy-sandbox-image-missing.e2e.test.ts b/src/commands/doctor.falls-back-legacy-sandbox-image-missing.e2e.test.ts deleted file mode 100644 index 79c3b3ec1..000000000 --- a/src/commands/doctor.falls-back-legacy-sandbox-image-missing.e2e.test.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { describe, expect, it } from "vitest"; -import { arrangeLegacyStateMigrationTest, confirm } from "./doctor.e2e-harness.js"; - -describe("doctor command", () => { - it("runs legacy state migrations in non-interactive mode without prompting", async () => { - const { doctorCommand, runtime, runLegacyStateMigrations } = - await arrangeLegacyStateMigrationTest(); - - await doctorCommand(runtime, { nonInteractive: true }); - - expect(runLegacyStateMigrations).toHaveBeenCalledTimes(1); - expect(confirm).not.toHaveBeenCalled(); - }, 30_000); -}); diff --git a/src/commands/doctor.runs-legacy-state-migrations-yes-mode-without.e2e.test.ts b/src/commands/doctor.runs-legacy-state-migrations-yes-mode-without.e2e.test.ts index 635cf8a05..1df276f3d 100644 --- a/src/commands/doctor.runs-legacy-state-migrations-yes-mode-without.e2e.test.ts +++ b/src/commands/doctor.runs-legacy-state-migrations-yes-mode-without.e2e.test.ts @@ -20,6 +20,16 @@ describe("doctor command", () => { expect(confirm).not.toHaveBeenCalled(); }, 30_000); + it("runs legacy state migrations in non-interactive mode without prompting", async () => { + const { doctorCommand, runtime, runLegacyStateMigrations } = + await arrangeLegacyStateMigrationTest(); + + await doctorCommand(runtime, { nonInteractive: true }); + + expect(runLegacyStateMigrations).toHaveBeenCalledTimes(1); + expect(confirm).not.toHaveBeenCalled(); + }, 30_000); + it("skips gateway restarts in non-interactive mode", async () => { readConfigFileSnapshot.mockResolvedValue({ path: "/tmp/openclaw.json",