Skip to content

Commit e35e100

Browse files
CBenoitCopilot
andcommitted
test(agent): release recovery fixtures
Release prepared replacement handles before recovery reopens the published policy in recovery validation tests. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 5a375f6 commit e35e100

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • crates/now-package-broker/src/policy_store

crates/now-package-broker/src/policy_store/windows.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4441,6 +4441,7 @@ mod tests {
44414441
new_security_digest: policy_security::security_state_digest(&prepared).unwrap(),
44424442
};
44434443
rename_file_handle(&prepared, &dir_file, final_path.file_name().unwrap()).unwrap();
4444+
drop(prepared);
44444445
let marker_file = open_deletable_test_file(&marker_path, b"marker");
44454446
let old_file = open_deletable_test_file(&old_path, b"verified-old");
44464447

@@ -4495,6 +4496,7 @@ mod tests {
44954496
new_security_digest: policy_security::security_state_digest(&prepared).unwrap(),
44964497
};
44974498
rename_file_handle(&prepared, &dir_file, final_path.file_name().unwrap()).unwrap();
4499+
drop(prepared);
44984500
let marker_file = open_deletable_test_file(&marker_path, b"marker");
44994501
let old_file = open_deletable_test_file(&old_path, b"verified-old");
45004502

0 commit comments

Comments
 (0)