mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-22 12:54:54 +01:00
tests: actually delete the buffer in the buffer fixture
This commit is contained in:
parent
c08e209e06
commit
c1c9dea033
1 changed files with 6 additions and 2 deletions
|
@ -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:?}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue