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.
This commit is contained in:
rcourtman
2026-09-06 13:05:01 +01:00
parent f48c806718
commit 0fcb2ee147
@@ -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', () => {