From 80d1a317f2e276caf7728a6135e849bc636f24dc Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Wed, 29 Nov 2023 22:41:05 +0100 Subject: [PATCH] Make testfile deletion more explicit --- integration/delete_before_lockdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/delete_before_lockdown.rs b/integration/delete_before_lockdown.rs index ffc05df..f0ad37b 100644 --- a/integration/delete_before_lockdown.rs +++ b/integration/delete_before_lockdown.rs @@ -12,7 +12,7 @@ pub fn setup() -> TestSetup { let mut sandbox = Birdcage::new(); sandbox.add_exception(Exception::Read(tempfile.path().into())).unwrap(); - drop(tempfile); + tempfile.close().unwrap(); TestSetup { sandbox, data: String::new() } }