Flush the buffer after writing the entire file output

This commit is contained in:
Omar Abdulla
2025-10-09 18:01:19 +03:00
parent 73fce7a250
commit 6b8fec2a12
@@ -318,7 +318,14 @@ async fn start_cli_reporting_task(output_format: OutputFormat, reporter: Reporte
status, success_count, failure_count, ignored_count,
)
.unwrap();
writeln!(buf).unwrap()
writeln!(buf).unwrap();
buf = tokio::task::spawn_blocking(move || {
buf.flush().unwrap();
buf
})
.await
.unwrap();
}
}
}