Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Start the picker adapter fixture before websocket hydration

pulse-triage[bot]f9d1f0d1c4b3
diff --git a/frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts b/frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts
index 336199c3e2..6fc5f506eb 100644
--- a/frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts
+++ b/frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts
@@ -3440,6 +3440,8 @@ describe('useUnifiedResources', () => {
it('keeps picker read failures through the useResources adapter and cached remounts', async () => {
const { useResources } = await import('../useResources');
setWsConnected(false);
+ setWsInitialDataReceived(false);
+ setWsState('resources', []);
const disposals: (() => void)[] = [];
const mount = (retainReadError = true) => {
let result!: ReturnType<typeof useResources>;