From 522ae4c5d96dae2abb60726b6ea80c0735544cd0 Mon Sep 17 00:00:00 2001 From: bmc-msft <41130664+bmc-msft@users.noreply.github.com> Date: Tue, 30 Mar 2021 19:58:43 -0400 Subject: [PATCH] remove supervisor-is-done upon test completion (#754) --- src/agent/onefuzz-supervisor/src/agent/tests.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/agent/onefuzz-supervisor/src/agent/tests.rs b/src/agent/onefuzz-supervisor/src/agent/tests.rs index 50cd0ae18..23d263ad0 100644 --- a/src/agent/onefuzz-supervisor/src/agent/tests.rs +++ b/src/agent/onefuzz-supervisor/src/agent/tests.rs @@ -221,4 +221,10 @@ async fn test_emitted_state_failed_setup() { let coordinator: &CoordinatorDouble = agent.coordinator.downcast_ref().unwrap(); let events = &coordinator.events; assert_eq!(events, &expected_events); + + // TODO: at some point, the underlying tests should be updated to not write + // this file in the first place. + tokio::fs::remove_file(crate::done::done_path().unwrap()) + .await + .unwrap(); }