Skip to content

Commit

Permalink
(chocolatey#3502) Update tests to disable extra sources
Browse files Browse the repository at this point in the history
The Test Kitchen environment has both `hermes` and `hermes-all` enabled.
This results in a duplication of the warning message. This disables all
the sources and then enables just the `hermes` source. # Please enter
the commit message for your changes. Lines starting
  • Loading branch information
corbob committed Nov 7, 2024
1 parent eb813d5 commit 9f325e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/pester-tests/features/PageSize.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
}
) {
BeforeAll {
Disable-ChocolateySource
Enable-ChocolateySource -Name hermes
$Output = Invoke-Choco $Command --page-size $ProvidedSize
}

Expand All @@ -55,8 +57,6 @@
}
}
foreach ($message in $ExpectedMessage) {
# The output here may contain duplicated line for the warning about non-30 page size.
# We have been unable to reproduce this output in any scenario other than in these tests.
$Output.Lines | Should -Contain $message -Because $Output.String
}
}
Expand Down

0 comments on commit 9f325e1

Please sign in to comment.