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() } }