Skip to content

Commit

Permalink
Ported fixed implemented in AVM to reenabled static test issues (#4352)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Dec 11, 2023
1 parent 022f7b8 commit 972277e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utilities/pipelines/sharedScripts/Set-ModuleReadMe.ps1
Expand Up @@ -1155,7 +1155,7 @@ function Set-UsageExamplesSection {
$buildTestFileMap = [System.Collections.Concurrent.ConcurrentDictionary[string, object]]::new()
$testFilePaths | ForEach-Object -Parallel {
$folderName = Split-Path (Split-Path -Path $_) -Leaf
$buildTemplate = bicep build $_ --stdout | ConvertFrom-Json -AsHashtable
$buildTemplate = (bicep build $_ --stdout 2>$null) | ConvertFrom-Json -AsHashtable

$dict = $using:buildTestFileMap
$null = $dict.TryAdd($folderName, $buildTemplate)
Expand Down
2 changes: 1 addition & 1 deletion utilities/pipelines/staticValidation/module.tests.ps1
Expand Up @@ -48,7 +48,7 @@ foreach ($moduleFolderPath in $moduleFolderPaths) {
$builtTestFileMap = [System.Collections.Concurrent.ConcurrentDictionary[string, object]]::new()
$pathsToBuild | ForEach-Object -Parallel {
$dict = $using:builtTestFileMap
$builtTemplate = bicep build $_ --stdout | ConvertFrom-Json -AsHashtable
$builtTemplate = (bicep build $_ --stdout 2>$null) | ConvertFrom-Json -AsHashtable
$null = $dict.TryAdd($_, $builtTemplate)
}

Expand Down

0 comments on commit 972277e

Please sign in to comment.