diff --git a/src/interactor.rs b/src/interactor.rs index a54c64c..d8836dc 100644 --- a/src/interactor.rs +++ b/src/interactor.rs @@ -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:"));