Skip to content

Commit 572c617

Browse files
More fixes
1 parent c702047 commit 572c617

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

test/SavePSResourceTests/SavePSResourceV2.Tests.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ Describe 'Test HTTP Save-PSResource for V2 Server Protocol' -tags 'CI' {
205205
# Save resource that requires license
206206
It "Save resource that requires accept license with -AcceptLicense flag" {
207207
$pkg = Save-PSResource -Repository $PSGalleryName -TrustRepository -Path $SaveDir -Name $testModuleNameWithLicense -AcceptLicense -PassThru
208-
$pkg = Get-InstalledPSResource -Path $SaveDir -Name $testModuleNameWithLicense
209208
$pkg.Name | Should -Be $testModuleNameWithLicense
210-
$pkg.Version | Should -Be "2.0.0.0"
209+
$pkg.Version | Should -Be "2.0"
211210
}
212211
}

test/UpdatePSResourceTests/UpdatePSResourceV2.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Describe 'Test HTTP Update-PSResource for V2 Server Protocol' -tags 'CI' {
7878
$v1000.Version | Should -Be "1.0.0.0"
7979

8080
$v5000 = Update-PSResource -Name $testModuleName -Version "5.0.0.0" -Repository $PSGalleryName -TrustRepository -PassThru -Force
81-
$v5000.Version | Should -Be "5.0.0.0"
81+
$v5000.Version | Should -Contain "5.0.0.0"
8282
$res = Get-InstalledPSResource -Name $testModuleName
8383
$res | Should -Not -BeNullOrEmpty
8484
$isPkgUpdated = $false

0 commit comments

Comments
 (0)