From 57bef4861aaca410f0373012ab223c33d82829c7 Mon Sep 17 00:00:00 2001 From: gowridurgad <159780674+gowridurgad@users.noreply.github.com> Date: Thu, 27 Jun 2024 12:32:24 +0530 Subject: [PATCH] Update Node.Tests.ps1 --- tests/Node.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Node.Tests.ps1 b/tests/Node.Tests.ps1 index e2fd11a..cd212f1 100644 --- a/tests/Node.Tests.ps1 +++ b/tests/Node.Tests.ps1 @@ -36,10 +36,10 @@ Describe "Node.js" { It "cached version is used without downloading" { # Set a custom variable to check for architecture and OS - $isWindows = if ($IsWindows) {$true} else {$false} + $isArm64Linux = if ((uname -m) -eq 'aarch64' -and ((uname -o) -eq 'GNU/Linux')) {$true} else {$false} - if (!$isWindows -and !$isArm64Linux) { + if (!$isArm64Linux) { # Analyze output of previous steps to check if Node.js was consumed from cache or downloaded $useNodeLogFile = Get-UseNodeLogs $useNodeLogFile | Should -Exist