diff --git a/__tests__/installer.test.ts b/__tests__/installer.test.ts
index ea39de85..f2dee94c 100644
--- a/__tests__/installer.test.ts
+++ b/__tests__/installer.test.ts
@@ -397,6 +397,10 @@ describe('setup-node', () => {
   }, 100000);
 
   it('enables corepack if specified', async () => {
+    os.platform = 'linux';
+    os.arch = 'x64';
+
+    inputs['node-version'] = '12';
     inputs['corepack'] = 'true';
 
     await main.run();