Skip to content

Commit 66dfa11

Browse files
committed
GCI on local repo
1 parent 56a1a3a commit 66dfa11

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/InstallPSResourceTests/InstallPSResourceLocal.Tests.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,12 @@ Describe 'Test Install-PSResource for local repositories' -tags 'CI' {
140140
}
141141

142142
It "Install resource with cmdlet names from a module already installed with -NoClobber (should not clobber)" {
143-
Install-PSResource -Name $testModuleClobber -Repository $localRepo -TrustRepository
143+
Install-PSResource -Name $testModuleClobber -Repository $localRepo -TrustRepository -Verbose
144+
145+
Write-Verbose -Verbose "~~~~~~~~~~~~~~~"
146+
Get-ChildItem $localRepo -Recurse
147+
Write-Verbose -Verbose "~~~~~~~~~~~~~~~"
148+
144149
$pkg = Get-InstalledPSResource $testModuleClobber
145150
$pkg.Name | Should -Be $testModuleClobber
146151
$pkg.Version | Should -Be "1.0.0"
@@ -175,7 +180,7 @@ Describe 'Test Install-PSResource for local repositories' -tags 'CI' {
175180
Write-Verbose -Verbose "----------------------------------"
176181
}
177182
}
178-
183+
179184
$pkg | Should -BeNullOrEmpty
180185
$ev.Count | Should -Be 1
181186
$ev[0] | Should -Be "'testModuleClobber2' package could not be installed with error: The following commands are already available on this system: 'Test-Cmdlet1, Test-Cmdlet1'. This module 'testModuleClobber2' may override the existing commands. If you still want to install this module 'testModuleClobber2', remove the -NoClobber parameter."

0 commit comments

Comments
 (0)