Skip to content

Commit 4e67478

Browse files
committed
delete unzippedPath in test after it's written to or subsequent Expand-Archive calls to that path will fail
1 parent c822121 commit 4e67478

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/PublishPSResourceTests/CompressPSResource.Tests.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ Describe "Test Compress-PSResource" -tags 'CI' {
185185
Expand-Archive -Path $zipPath -DestinationPath $unzippedPath
186186

187187
Test-Path -Path (Join-Path -Path $unzippedPath -ChildPath $testFile) | Should -Be $True
188+
$null = Remove-Item $unzippedPath -Force -Recurse
188189
}
189190

190191
It "Compresses a script" {

0 commit comments

Comments
 (0)