Skip to content

Commit 72d39bb

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
add test tracing
1 parent e8bbf96 commit 72d39bb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

dsc/tests/dsc_mcp.tests.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,24 @@ Describe 'Tests for MCP server' {
1717
$mcp.StandardInput.WriteLine($request)
1818
$mcp.StandardInput.Flush()
1919
if (!$notify) {
20+
write-verbose -verbose "peeking stdout"
2021
while ($mcp.StandardOutput.Peek() -eq -1) {
2122
Start-Sleep -Milliseconds 100
2223
}
24+
<<<<<<< HEAD
2325
while ($mcp.StandardError.Peek() -ne -1) {
2426
$stderr = $mcp.StandardError.ReadLine()
2527
Write-Verbose -Verbose "MCP STDERR: $stderr"
2628
}
29+
||||||| parent of 5829321b (add test tracing)
30+
=======
31+
write-verbose -verbose "peeking stderr"
32+
while ($mcp.StandardError.Peek() -ne -1) {
33+
$stderr = $mcp.StandardError.ReadLine()
34+
Write-Verbose -Verbose "MCP STDERR: $stderr"
35+
}
36+
write-verbose -verbose "reading stdout"
37+
>>>>>>> 5829321b (add test tracing)
2738
$stdout = $mcp.StandardOutput.ReadLine()
2839
return ($stdout | ConvertFrom-Json -Depth 30)
2940
}

0 commit comments

Comments
 (0)