mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-31 21:36:26 +00:00
Use run_until_parked instead of condition
Avoids spurious failures when the CI server is going slow
This commit is contained in:
parent
a860ca6a3c
commit
e7db5d0638
1 changed files with 3 additions and 3 deletions
|
@ -1513,10 +1513,10 @@ mod tests {
|
|||
.as_fake()
|
||||
.insert_file("/root/a.txt", "changed".to_string())
|
||||
.await;
|
||||
editor
|
||||
.condition::<EditorEvent>(cx, |editor, cx| editor.has_conflict(cx))
|
||||
.await;
|
||||
|
||||
cx.run_until_parked();
|
||||
cx.read(|cx| assert!(editor.is_dirty(cx)));
|
||||
cx.read(|cx| assert!(editor.has_conflict(cx)));
|
||||
|
||||
let save_task = window
|
||||
.update(cx, |workspace, cx| {
|
||||
|
|
Loading…
Reference in a new issue