Skip to content

Commit 1d661e5

Browse files
authored
Apply suggestions from code review
1 parent 319dc12 commit 1d661e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

powershell-adapter/Tests/powershellgroup.resource.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ Describe 'PowerShell adapter resource tests' {
281281
$env:TestClassResourceResultCount = $null
282282
}
283283

284-
It 'Verify that there are no cache rebuids for several sequential executions' {
284+
It 'Verify that there are no cache rebuilds for several sequential executions' {
285285

286286
# remove cache file
287287
$cacheFilePath = if ($IsWindows) {
@@ -295,7 +295,7 @@ Describe 'PowerShell adapter resource tests' {
295295
Join-Path $env:HOME ".dsc" "PSAdapterCache.json"
296296
}
297297
}
298-
Remove-Item -Force -Path $cacheFilePath -ErrorAction SilentlyContinue
298+
Remove-Item -Force -Path $cacheFilePath -ErrorAction Ignore
299299

300300
# first execution should build the cache
301301
dsc -l trace resource list -a Microsoft.DSC/PowerShell 2> $TestDrive/tracing.txt

powershell-adapter/Tests/win_powershellgroup.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ Describe 'WindowsPowerShell adapter resource tests' {
7171
$res.results[0].result.actualState.result[0].properties.DestinationPath | Should -Be "$testFile"
7272
}
7373

74-
It 'Verify that there are no cache rebuids for several sequential executions' -Skip:(!$IsWindows) {
74+
It 'Verify that there are no cache rebuilds for several sequential executions' -Skip:(!$IsWindows) {
7575

7676
# remove cache file
7777
$cacheFilePath = Join-Path $env:LocalAppData "dsc\WindowsPSAdapterCache.json"
78-
Remove-Item -Force -Path $cacheFilePath -ErrorAction SilentlyContinue
78+
Remove-Item -Force -Path $cacheFilePath -ErrorAction Ignore
7979

8080
# first execution should build the cache
8181
dsc -l trace resource list -a Microsoft.Windows/WindowsPowerShell 2> $TestDrive/tracing.txt

0 commit comments

Comments
 (0)