tests: actually delete the buffer in the buffer fixture

This commit is contained in:
zaaarf 2024-11-03 20:11:21 +01:00
parent c08e209e06
commit c1c9dea033
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B

View file

@ -253,11 +253,15 @@ impl
async fn cleanup(
&mut self,
_resource: Option<(
mut resource: Option<(
(crate::Client, crate::Workspace, crate::buffer::Controller),
(crate::Client, crate::Workspace, crate::buffer::Controller),
)>,
) {
// buffer deletion is implied in workspace deletion
if let Some(((_, ws, buf), (_, _, _))) = resource.take() {
if let Err(e) = ws.delete_buffer(buf.path()).await {
eprintln!("could not delete buffer: {e:?}");
}
}
}
}