Skip to content

Commit 1f5bbeb

Browse files
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)Copilot
andcommitted
Fix adapter lookup cache test
Prime the lookup table with all Microsoft adapters so repeat discovery does not add Group Policy resources unexpectedly. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent dd40208 commit 1f5bbeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dsc/tests/dsc_discovery.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Describe 'tests for resource discovery' {
154154
Test-Path $script:lookupTableFilePath -PathType Leaf | Should -BeFalse
155155

156156
# initial invocation should populate and save adapter lookup table
157-
$null = dsc -l trace resource list -a 'Microsoft.*/PowerShell' 2> $TestDrive/tracing.txt
157+
$null = dsc -l trace resource list -a 'Microsoft.*/*' 2> $TestDrive/tracing.txt
158158
"$TestDrive/tracing.txt" | Should -FileContentMatchExactly "Read 0 items into lookup table"
159159
"$TestDrive/tracing.txt" | Should -FileContentMatchExactly "Saving lookup table" -Because (Get-Content -Raw "$TestDrive/tracing.txt")
160160

0 commit comments

Comments
 (0)