mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-19 04:01:06 +00:00
Flush the buffer after writing the entire file output
This commit is contained in:
@@ -318,7 +318,14 @@ async fn start_cli_reporting_task(output_format: OutputFormat, reporter: Reporte
|
|||||||
status, success_count, failure_count, ignored_count,
|
status, success_count, failure_count, ignored_count,
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
writeln!(buf).unwrap()
|
writeln!(buf).unwrap();
|
||||||
|
|
||||||
|
buf = tokio::task::spawn_blocking(move || {
|
||||||
|
buf.flush().unwrap();
|
||||||
|
buf
|
||||||
|
})
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user