From 6b8fec2a12c93549c135e7b1a9797ef32289dc8f Mon Sep 17 00:00:00 2001 From: Omar Abdulla Date: Thu, 9 Oct 2025 18:01:19 +0300 Subject: [PATCH] Flush the buffer after writing the entire file output --- crates/core/src/differential_tests/entry_point.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/core/src/differential_tests/entry_point.rs b/crates/core/src/differential_tests/entry_point.rs index b9cd9a7..5c7f5dc 100644 --- a/crates/core/src/differential_tests/entry_point.rs +++ b/crates/core/src/differential_tests/entry_point.rs @@ -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(); } } }