Skip to content

Commit

Permalink
fix(api): fix possible size mismatch on root mount
Browse files Browse the repository at this point in the history
The root mount was picked up wrongfully, if the path was exactly "/mnt/host/boot"

fixes #594
  • Loading branch information
MauriceNino committed Feb 22, 2023
1 parent ede0d42 commit 148c1df
Show file tree
Hide file tree
Showing 5 changed files with 397 additions and 3 deletions.
8 changes: 8 additions & 0 deletions apps/api/__TESTS__/dynamic-info.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
TEST_CASE_14,
TEST_CASE_15,
TEST_CASE_16,
TEST_CASE_17,
TEST_CASE_2,
TEST_CASE_3,
TEST_CASE_4,
Expand Down Expand Up @@ -145,5 +146,12 @@ describe('Dynamic Info', () => {
).getMappedLayout();
expect(output).to.deep.equal(TEST_CASE_16.output);
});
it('Test Case 17', () => {
const output = new DynamicStorageMapper(
false,
...toStorageInp(TEST_CASE_17)
).getMappedLayout();
expect(output).to.deep.equal(TEST_CASE_17.output);
});
});
});
5 changes: 5 additions & 0 deletions apps/api/__TESTS__/static-info.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
TEST_CASE_14,
TEST_CASE_15,
TEST_CASE_16,
TEST_CASE_17,
TEST_CASE_2,
TEST_CASE_3,
TEST_CASE_4,
Expand Down Expand Up @@ -97,5 +98,9 @@ describe('Static Info', () => {
const output = mapToStorageLayout(true, ...toStorageInp(TEST_CASE_16));
expect(output).to.deep.equal(TEST_CASE_16.layout);
});
it('Test Case 17', () => {
const output = mapToStorageLayout(false, ...toStorageInp(TEST_CASE_17));
expect(output).to.deep.equal(TEST_CASE_17.layout);
});
});
});
Loading

0 comments on commit 148c1df

Please sign in to comment.