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.

Align partial I/O regression expectations

rcourtman0fcb2ee14735
diff --git a/frontend-modern/src/features/standalone/__tests__/agentMachineTableModel.coverage2.test.ts b/frontend-modern/src/features/standalone/__tests__/agentMachineTableModel.coverage2.test.ts
index f7f382694a..7edac27428 100644
--- a/frontend-modern/src/features/standalone/__tests__/agentMachineTableModel.coverage2.test.ts
+++ b/frontend-modern/src/features/standalone/__tests__/agentMachineTableModel.coverage2.test.ts
@@ -332,20 +332,20 @@ describe('agentMachineTableModel coverage2', () => {
).toBe(800);
});
- it('returns read only when write is absent', () => {
+ it('leaves the total unavailable when write is absent', () => {
expect(
getAgentMachineDiskIOTotal(
resource({ diskIO: { readRate: 500 } as unknown as ResourceDiskIO }),
),
- ).toBe(500);
+ ).toBeUndefined();
});
- it('returns write only when read is absent', () => {
+ it('leaves the total unavailable when read is absent', () => {
expect(
getAgentMachineDiskIOTotal(
resource({ diskIO: { writeRate: 300 } as unknown as ResourceDiskIO }),
),
- ).toBe(300);
+ ).toBeUndefined();
});
it('returns undefined when both rates are absent', () => {