mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-12 06:55:19 +00:00
mend
This commit is contained in:
@@ -200,28 +200,6 @@ describe.skipIf(hasRealMonitoring())(
|
|||||||
REAL_TEST_TIMEOUT,
|
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(
|
it(
|
||||||
"deploys the service even when removing the legacy container fails",
|
"deploys the service even when removing the legacy container fails",
|
||||||
async () => {
|
async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user