Skip to content

Commit b7934fd

Browse files
authored
Merge pull request chocolatey#2802 from corbob/outdated-tests
2 parents b63b96a + 8741a2e commit b7934fd

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

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

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

1021
AfterAll {

0 commit comments

Comments
 (0)