Skip to content

Commit f51a8b8

Browse files
committed
fix error in test logic
1 parent 336d910 commit f51a8b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/InstallPSResourceTests/InstallPSResourceContainerRegistryServer.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ Describe 'Test Install-PSResource for ACR scenarios' -tags 'CI' {
108108
$res.Version | Should -Be "1.0"
109109
}
110110

111-
It "Install resource when version contains different number of digits than the normalized version- 4 digits specified and prerelease" {
111+
It "Install resource where version specified is a prerelease version" {
112112
# the resource has version "1.0", but querying with any equivalent version should work
113-
Install-PSResource -Name $testModuleWith2DigitVersion -Version "1.5.0.0" -Repository $ACRRepoName -TrustRepository
113+
Install-PSResource -Name $testModuleWith2DigitVersion -Version "1.5-alpha" -Prerelease -Repository $ACRRepoName -TrustRepository
114114
$res = Get-InstalledPSResource -Name $testModuleWith2DigitVersion
115115
$res | Should -Not -BeNullOrEmpty
116116
$res.Version | Should -Be "1.5"

0 commit comments

Comments
 (0)