Skip to content

Commit 44f2ffe

Browse files
[release/v7.4] Skip the flaky Update-Help test for the PackageManagement module (#26871)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
1 parent f9cd7d9 commit 44f2ffe

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test/powershell/engine/Help/UpdatableHelpSystem.Tests.ps1

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function RunUpdateHelpTests
215215

216216
It ('Validate Update-Help for module ''{0}'' in {1}' -F $moduleName, [PSCustomObject] $updateScope) -Skip:(!(Test-CanWriteToPsHome) -and $userscope -eq $false) {
217217

218-
if ($markAsPending) {
218+
if ($markAsPending -or ($IsLinux -and $moduleName -eq "PackageManagement")) {
219219
Set-ItResult -Pending -Because "Update-Help from the web has intermittent connectivity issues. See issues #2807 and #6541."
220220
return
221221
}
@@ -333,9 +333,7 @@ Describe "Validate Update-Help from the Web for one PowerShell module." -Tags @(
333333
$ProgressPreference = $SavedProgressPreference
334334
}
335335

336-
## Update-Help from the web has intermittent connectivity issues that cause CI failures.
337-
## Tests are marked as Pending to unblock work. See issues #2807 and #6541.
338-
RunUpdateHelpTests -Tag "CI" -MarkAsPending
336+
RunUpdateHelpTests -Tag "CI"
339337
}
340338

341339
Describe "Validate Update-Help from the Web for one PowerShell module for user scope." -Tags @('CI', 'RequireAdminOnWindows', 'RequireSudoOnUnix') {
@@ -347,9 +345,7 @@ Describe "Validate Update-Help from the Web for one PowerShell module for user s
347345
$ProgressPreference = $SavedProgressPreference
348346
}
349347

350-
## Update-Help from the web has intermittent connectivity issues that cause CI failures.
351-
## Tests are marked as Pending to unblock work. See issues #2807 and #6541.
352-
RunUpdateHelpTests -Tag "CI" -UserScope -MarkAsPending
348+
RunUpdateHelpTests -Tag "CI" -UserScope
353349
}
354350

355351
Describe "Validate Update-Help from the Web for all PowerShell modules." -Tags @('Feature', 'RequireAdminOnWindows', 'RequireSudoOnUnix') {

0 commit comments

Comments
 (0)