From dd8ef7901febac60e5f806f0efeee4b37f471ad9 Mon Sep 17 00:00:00 2001 From: gowridurgad <159780674+gowridurgad@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:56:28 +0530 Subject: [PATCH] Update Node.Tests.ps1 --- tests/Node.Tests.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Node.Tests.ps1 b/tests/Node.Tests.ps1 index 78d4509..3ce0835 100644 --- a/tests/Node.Tests.ps1 +++ b/tests/Node.Tests.ps1 @@ -39,11 +39,12 @@ Describe "Node.js" { Write-Host "OS: $($env:OS)" } - It "cached version is used without downloading" { + It "cached version is used without downloading" { # Set a custom variable to check for architecture and OS - $isArm64WindowsOrLinux = if ((uname -m) -eq 'aarch64' -and ((uname -o) -eq 'GNU/Linux' -or $IsWindows)) {$true} else {$false} + $isArm64Windows = if ($IsWindows -and ([System.Environment]::Is64BitOperatingSystem)) {$true} else {$false} + $isArm64Linux = if ((uname -m) -eq 'aarch64' -and ((uname -o) -eq 'GNU/Linux')) {$true} else {$false} - if (!$isArm64WindowsOrLinux) { + if (!$isArm64Windows -and !$isArm64Linux) { # Analyze output of previous steps to check if Node.js was consumed from cache or downloaded $useNodeLogFile = Get-UseNodeLogs $useNodeLogFile | Should -Exist @@ -55,7 +56,6 @@ Describe "Node.js" { } } - It "Run simple code" { "node ./simple-test.js" | Should -ReturnZeroExitCode }