From 0fcb2ee147354de770dfc4b0b9672d8c2c9dceb2 Mon Sep 17 00:00:00 2001 From: rcourtman <8825017+rcourtman@users.noreply.github.com> Date: Sun, 6 Sep 2026 13:05:01 +0100 Subject: [PATCH] Align partial I/O regression expectations A missing direction cannot establish aggregate throughput. Update the remaining coverage cases to expect an unavailable total, consistent with the observation contract and user-visible missing readings. --- .../__tests__/agentMachineTableModel.coverage2.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 f7f382694..7edac2742 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', () => {