mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-09-14 11:06:15 +05:00
mend
This commit is contained in:
parent
e2ab2eb6bc
commit
875baa139c
@ -200,28 +200,6 @@ describe.skipIf(hasRealMonitoring())(
|
||||
REAL_TEST_TIMEOUT,
|
||||
);
|
||||
|
||||
it(
|
||||
"cleans up the legacy container on a build server but deploys no service",
|
||||
async () => {
|
||||
const { findServerById } = await import(
|
||||
"@dokploy/server/services/server"
|
||||
);
|
||||
const server = await vi.mocked(findServerById)("test-server");
|
||||
vi.mocked(findServerById).mockResolvedValueOnce({
|
||||
...server,
|
||||
serverType: "build",
|
||||
} as any);
|
||||
|
||||
await createLegacyZombie();
|
||||
|
||||
await setupMonitoring("test-server");
|
||||
|
||||
expect(await containerExists(SERVICE_NAME)).toBe(false);
|
||||
expect(await serviceExists(SERVICE_NAME)).toBe(false);
|
||||
},
|
||||
REAL_TEST_TIMEOUT,
|
||||
);
|
||||
|
||||
it(
|
||||
"deploys the service even when removing the legacy container fails",
|
||||
async () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user