From 06b071df58ffb24a185e42039582dc94ce648211 Mon Sep 17 00:00:00 2001 From: "detail-app[bot]" Date: Fri, 4 Sep 2026 02:59:58 +0000 Subject: [PATCH] test: cover local path branch in rollback file mount test --- apps/dokploy/__test__/server/rollback.test.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/apps/dokploy/__test__/server/rollback.test.ts b/apps/dokploy/__test__/server/rollback.test.ts index 30981b32c..2566ee9b9 100644 --- a/apps/dokploy/__test__/server/rollback.test.ts +++ b/apps/dokploy/__test__/server/rollback.test.ts @@ -180,23 +180,18 @@ describe("rollbackApplication mounts", () => { }); }); - it("resolves file mount source against the application serverId", async () => { + it("resolves file mount source against the local applications path", async () => { const context = createContext({ mounts: buildMounts(), - serverId: "remote-server", + serverId: null, }); - await rollbackApplication( - APP_NAME, - "test-app:v1", - "remote-server", - context, - ); + await rollbackApplication(APP_NAME, "test-app:v1", null, context); const mounts = getMounts(createServiceMock.mock.calls[0]); expect(mounts).toContainEqual({ Type: "bind", - Source: expectedFileSource("config.yaml", "remote-server"), + Source: expectedFileSource("config.yaml", null), Target: "/app/config.yaml", }); });