mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
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:
+4
-4
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user