Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

remove supervisor-is-done upon test completion #754

Merged
merged 5 commits into from
Mar 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/agent/onefuzz-supervisor/src/agent/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
bmc-msft marked this conversation as resolved.
Show resolved Hide resolved
.await
.unwrap();
}