Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: retain backup fixture when child closure is unconfirmed (#13450)

[._.]/ Adam Eivy9ce1866c45a5
diff --git a/server/services/backup.fixture-lifecycle.test.js b/server/services/backup.fixture-lifecycle.test.js
index 10776a1523..525d29c605 100644
--- a/server/services/backup.fixture-lifecycle.test.js
+++ b/server/services/backup.fixture-lifecycle.test.js
@@ -153,9 +153,11 @@ describe.skipIf(missingWindowsRsync)('backup authority fixture cancellation (#13
throw error;
} finally {
controller.abort();
- await running;
+ // A kill watchdog may settle the runner without proving child close.
+ // Keep that host for recovery instead of deleting beneath its workers.
+ const settled = await running?.catch(() => null);
signal.removeEventListener('abort', abort);
- rmSync(host, { recursive: true, force: true });
+ if (!running || settled?.closeConfirmed === true) rmSync(host, { recursive: true, force: true });
}
});
}