test: refresh probe window before teardown
This commit is contained in:
1 parent
6d214071f4
commit
8b8b37b2b0
1 file changed
+4
-1
@@ -196,7 +196,10 @@ fn native_ssh_copy_context_menu_preview() {
|
||||
*result.lock().unwrap() = Some(opened);
|
||||
|
||||
drop(pane);
|
||||
let _ = cx.update_window(handle.into(), |_, window, _| window.remove_window());
|
||||
let _ = cx.update_window(handle.into(), |_, window, _| {
|
||||
window.refresh();
|
||||
window.remove_window();
|
||||
});
|
||||
cx.background_executor().timer(Duration::from_millis(250)).await;
|
||||
cx.update(|cx| cx.quit());
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user