Skip to content

Commit 3df174a

Browse files
committed
(chocolatey#2801) Pin Chocolatey packages for outdated tests
Pin the chocolatey packages so that they don't inadvertently interfere with the outdated command tests.
1 parent b63b96a commit 3df174a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/chocolatey-tests/commands/choco-outdated.Tests.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ Describe "choco outdated" -Tag Chocolatey, OutdatedCommand {
44
BeforeAll {
55
Initialize-ChocolateyTestInstall
66
New-ChocolateyInstallSnapshot
7+
# Pin all of the Chocolatey packages
8+
@(
9+
'chocolatey'
10+
'chocolatey.extension'
11+
'chocolatey-agent'
12+
'chocolatey-management-database'
13+
'chocolatey-management-service'
14+
'chocolatey-management-web'
15+
) | ForEach-Object {
16+
$null = Invoke-Choco pin add -n $_
17+
}
718
Invoke-Choco install upgradepackage --version 1.0.0 --confirm
819
}
920

0 commit comments

Comments
 (0)