Skip to content

Commit ff316af

Browse files
kriszypclaude
andcommitted
fix(test): update systemInformation test for free_space_basis field
getDiskInfo() now always includes free_space_basis (set before the operationsApi_sysInfo_disk guard) so operators can always verify quota vs filesystem mode. Update the test expectations accordingly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 94c46fc commit ff316af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

unitTests/utility/environment/systemInformation.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const EXPECTED_PROPERTIES = {
176176
'reclaimable',
177177
'writeback',
178178
],
179-
disk: ['io', 'read_write', 'size'],
179+
disk: ['free_space_basis', 'io', 'read_write', 'size'],
180180
disk_io: ['rIO', 'wIO', 'tIO'],
181181
disk_read_write: ['rx', 'wx', 'tx'],
182182
disk_size: ['fs', 'rw', 'type', 'size', 'used', 'use', 'mount', 'available'],
@@ -285,7 +285,7 @@ describe('test systemInformation module', () => {
285285

286286
env_mgr.setProperty('operationsApi_sysInfo_disk', false);
287287
results = await system_information.getDiskInfo();
288-
assert.deepEqual(results, {});
288+
assert.deepEqual(Object.keys(results).sort(), ['free_space_basis']);
289289
});
290290

291291
it('test getNetworkInfo function', async () => {

0 commit comments

Comments
 (0)