Skip to content

Commit

Permalink
fix: flush result file at the end (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
matzuk authored Sep 4, 2024
1 parent 6dac256 commit 004aed3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/interactor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ impl TriggerTestRunInteractor {
let mut file = File::create(&result_file).await?;
let data = serialize_event(&result_file, &event)?;
file.write_all(data.as_bytes()).await?;
file.flush().await?;
}
if let Some(error_message) = stat.error_message {
formatter.message(&format!("Error message:"));
Expand Down

0 comments on commit 004aed3

Please sign in to comment.