From 17d0e931fac44bdc2bf29208781923d622aef213 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Mon, 13 Jan 2020 19:26:28 +0000 Subject: [PATCH] Correct case of $IsLinux special variable --- .../Modules/Microsoft.PowerShell.Utility/Get-Date.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Date.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Date.Tests.ps1 index d45f5aaa6b..48a52d7940 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Date.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Date.Tests.ps1 @@ -28,7 +28,7 @@ Describe "Get-Date DRT Unit Tests" -Tags "CI" { $seconds = Get-date -Date:"Jan 1, 2020Z" -UFormat:"%s" $seconds | Should -Be "1577836800" - if ($isLinux) { + if ($IsLinux) { $dateString = "01/01/2020 UTC" if ( (Get-PlatformInfo) -eq "alpine" ) { $dateString = "2020-01-01"