From afb778a6b3faae538ba671965ecb302b1e605ff5 Mon Sep 17 00:00:00 2001 From: gowridurgad <159780674+gowridurgad@users.noreply.github.com> Date: Thu, 27 Jun 2024 10:36:24 +0530 Subject: [PATCH] Update Node.Tests.ps1 --- tests/Node.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Node.Tests.ps1 b/tests/Node.Tests.ps1 index 3ce0835..e18ccb1 100644 --- a/tests/Node.Tests.ps1 +++ b/tests/Node.Tests.ps1 @@ -41,7 +41,7 @@ Describe "Node.js" { It "cached version is used without downloading" { # Set a custom variable to check for architecture and OS - $isArm64Windows = if ($IsWindows -and ([System.Environment]::Is64BitOperatingSystem)) {$true} else {$false} + $isArm64Windows = if ($IsWindows -and ([System.Environment]::Is64BitOperatingSystem) -and ($ENV:PROCESSOR_ARCHITECTURE -eq 'ARM64')) {$true} else {$false} $isArm64Linux = if ((uname -m) -eq 'aarch64' -and ((uname -o) -eq 'GNU/Linux')) {$true} else {$false} if (!$isArm64Windows -and !$isArm64Linux) {