1
0
Fork 0
forked from wry/wry

it: wait for async engine and cpu worker to become idle

This commit is contained in:
Julian Orth 2024-09-28 22:26:01 +02:00
parent 58f82d889b
commit a9aad0c613
5 changed files with 59 additions and 3 deletions

View file

@ -54,6 +54,8 @@ impl TestJayCompositor {
&self,
include_cursor: bool,
) -> Result<(DmaBuf, Option<Rc<OwnedFd>>), TestError> {
self.tran.sync().await;
self.tran.run.state.idle().await;
let js = Rc::new(TestJayScreenshot {
id: self.tran.id(),
state: self.tran.run.state.clone(),