Skip to content

Commit fbed494

Browse files
Add debugging
1 parent b257a26 commit fbed494

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/UpdatePSResourceTests/UpdatePSResourceV2.Tests.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ Describe 'Test HTTP Update-PSResource for V2 Server Protocol' -tags 'CI' {
7474
}
7575

7676
It "Update resource installed given Name and Version (specific) parameters" {
77-
Install-PSResource -Name $testModuleName -Version "1.0.0.0" -Repository $PSGalleryName -TrustRepository
77+
$v1000 = Install-PSResource -Name $testModuleName -Version "1.0.0.0" -Repository $PSGalleryName -TrustRepository -Reinstall -PassThru
78+
$v1000.Version | Should -Be "1.0.0.0"
7879

79-
Update-PSResource -Name $testModuleName -Version "5.0.0.0" -Repository $PSGalleryName -TrustRepository
80+
$v5000 = Update-PSResource -Name $testModuleName -Version "5.0.0.0" -Repository $PSGalleryName -TrustRepository -PassThru -Force
81+
$v5000.Version | Should -Be "5.0.0.0"
8082
$res = Get-InstalledPSResource -Name $testModuleName
8183
$res | Should -Not -BeNullOrEmpty
8284
$isPkgUpdated = $false

0 commit comments

Comments
 (0)