Skip to content

Commit

Permalink
(chocolatey#2801) Pin Chocolatey packages for outdated tests
Browse files Browse the repository at this point in the history
Pin the chocolatey packages so that they don't inadvertently interfere
with the outdated command tests.
  • Loading branch information
corbob committed Aug 22, 2022
1 parent 0cfe727 commit 833b5bf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/chocolatey-tests/choco-outdated.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ Describe "choco outdated" -Tag Chocolatey, OutdatedCommand {
BeforeAll {
Initialize-ChocolateyTestInstall
New-ChocolateyInstallSnapshot
# Pin all of the Chocolatey packages
@(
'chocolatey'
'chocolatey.extension'
'chocolatey-agent'
'chocolatey-management-database'
'chocolatey-management-service'
'chocolatey-management-web'
) | ForEach-Object {
$null = Invoke-Choco pin add -n $_
}
Invoke-Choco install upgradepackage --version 1.0.0 --confirm
}

Expand Down

0 comments on commit 833b5bf

Please sign in to comment.