make tests great again

This commit is contained in:
Girish Ramakrishnan
2024-12-04 16:36:05 +01:00
parent 2bfa49cc2e
commit e4fb040ddf
3 changed files with 7 additions and 7 deletions

View File

@@ -157,10 +157,10 @@ describe('System', function () {
expect(response.statusCode).to.equal(200);
expect(response.body.usage.ts).to.be.a('number');
const filesystems = Object.keys(response.body.usage.disks);
const filesystems = Object.keys(response.body.usage.filesystems);
let dockerUsage = null;
for (const fs of filesystems) {
for (const content of response.body.usage.disks[fs].contents) {
for (const content of response.body.usage.filesystems[fs].contents) {
if (content.id === 'docker') dockerUsage = content;
}
}