Skip to content

Commit

Permalink
test: updated text in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Evzen Gasta <[email protected]>
  • Loading branch information
gastoner committed Sep 18, 2024
1 parent 299b2b8 commit 39370fc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ test('expect winversion preflight check return failure result if the version is
expect(result.docLinks?.[0].title).equal('WSL2 Manual Installation Steps');
});

test('expect winMemory preflight check return successful result if the machine has more than 6GB of memory', async () => {
test('expect winMemory preflight check return successful result if the machine has more than 5GB of memory', async () => {
const SYSTEM_MEM = 7 * 1024 * 1024 * 1024;
vi.spyOn(os, 'totalmem').mockReturnValue(SYSTEM_MEM);

Expand All @@ -272,15 +272,15 @@ test('expect winMemory preflight check return successful result if the machine h
expect(result.successful).toBeTruthy();
});

test('expect winMemory preflight check return failure result if the machine has less than 6GB of memory', async () => {
test('expect winMemory preflight check return failure result if the machine has less than 5GB of memory', async () => {
const SYSTEM_MEM = 4 * 1024 * 1024 * 1024;
vi.spyOn(os, 'totalmem').mockReturnValue(SYSTEM_MEM);

const installer = new WinInstaller(extensionContext);
const preflights = installer.getPreflightChecks();
const winMemoryCheck = preflights[2];
const result = await winMemoryCheck.execute();
expect(result.description).equal('You need at least 6GB to run Podman.');
expect(result.description).equal('You need at least 5GB to run Podman.');
expect(result.docLinksDescription).toBeUndefined();
expect(result.docLinks).toBeUndefined();
expect(result.fixCommand).toBeUndefined();
Expand Down

0 comments on commit 39370fc

Please sign in to comment.