Fix test failing when UnixStat feature is disabled#11370
Fix test failing when UnixStat feature is disabled#11370adityapatwardhan merged 1 commit intoPowerShell:masterfrom
Conversation
test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FormatData.Tests.ps1
Show resolved
Hide resolved
test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FormatData.Tests.ps1
Show resolved
Hide resolved
test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FormatData.Tests.ps1
Show resolved
Hide resolved
|
close/open PR to re-trigger CIs. |
|
@PoshChan please rebuild all |
|
@adityapatwardhan, successfully started rebuild of |
| @@ -15,7 +15,9 @@ Describe "Get-FormatData" -Tags "CI" { | |||
| $format.TypeNames | Should -HaveCount 2 | |||
There was a problem hiding this comment.
@adityapatwardhan, your last commit had 1 failures in PowerShell-CI-macos
Validate Update-Help from the Web for all PowerShell modules for user scope..Validate Update-Help for module 'PackageManagement' with scope as 'False'
Expected 1, but got 0.
at <ScriptBlock>, /Users/runner/runners/2.160.1/work/1/s/test/powershell/engine/Help/UpdatableHelpSystem.Tests.ps1: line 181
181: $helpFilesInstalled.Count | Should -Be $expectedHelpFiles.Count|
@PoshChan please retry macos |
|
@adityapatwardhan, successfully started retry of |
test/powershell/Modules/Microsoft.PowerShell.Utility/Get-FormatData.Tests.ps1
Show resolved
Hide resolved
|
@PoshChan please rebuild all |
|
@adityapatwardhan, successfully started rebuild of |
|
🎉 Handy links: |
PR Summary
Fixes #11357
PR Context
We check if the experimental feature is enabled before determining the expected value.
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.