File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,9 @@ Describe 'WindowsPowerShell adapter resource tests - requires elevated permissio
88
88
# }
89
89
90
90
It ' Verify if assertion is used that no module is cleared in the cache' - Skip:(! $IsWindows ) {
91
- BeforeAll {
92
- New-Item - Path " $testdrive \test.txt" - ItemType File - Force | Out-Null
93
- }
91
+ # create a test file in the test drive
92
+ $testFile = " $testdrive \test.txt"
93
+ New-Item - Path $testFile - ItemType File - Force | Out-Null
94
94
95
95
# remove cache file
96
96
$cacheFilePath = Join-Path $env: LocalAppData " dsc\WindowsPSAdapterCache.json"
@@ -140,7 +140,7 @@ resources:
140
140
- name: File
141
141
type: PSDesiredStateConfiguration/File
142
142
properties:
143
- DestinationPath: $testdrive \test.txt
143
+ DestinationPath: $testfile
144
144
- name: File present
145
145
type: Microsoft.DSC/Assertion
146
146
properties:
@@ -153,7 +153,7 @@ resources:
153
153
- name: File present
154
154
type: PSDesiredStateConfiguration/File
155
155
properties:
156
- DestinationPath: $testDrive \test.txt
156
+ DestinationPath: $testFile
157
157
dependsOn:
158
158
- "[resourceId('Microsoft.Windows/WindowsPowerShell', 'File')]"
159
159
- name: TestPSRepository
You can’t perform that action at this time.
0 commit comments