mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-05-25 18:49:25 +00:00
Auto-flush stdout in an attempt to get NUnit's output in the logs
This commit is contained in:
parent
d30706d2c5
commit
cbef74f6cb
@ -32,6 +32,12 @@ namespace DistTestCore
|
||||
|
||||
public void Setup()
|
||||
{
|
||||
// Console.Out is block-buffered when stdout is non-interactive (e.g. in a container).
|
||||
// Replace it with an auto-flushing wrapper so the NUnit runner's own "Passed/Failed"
|
||||
// progress lines are written to pod stdout immediately after each test completes,
|
||||
// rather than batching until process exit.
|
||||
Console.SetOut(new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = true });
|
||||
|
||||
try
|
||||
{
|
||||
Trace.Listeners.Add(new ConsoleTraceListener());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user