mirror of
https://gitlab.com/marcandre.lureau/qemu-display.git
synced 2024-12-22 05:35:20 +00:00
rdp: check the display queue can be flushed too
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
11c983a0f3
commit
93770b989f
@ -252,7 +252,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_capacity() {
|
||||
let (tx, _rx) = DisplayQueue::new();
|
||||
let (tx, rx) = DisplayQueue::new();
|
||||
crate::utils::block_on(async move {
|
||||
let ops = vec![DefaultPointer; QUEUE_CAPACITY];
|
||||
for op in ops {
|
||||
@ -262,7 +262,10 @@ mod tests {
|
||||
tx.push_update(DefaultPointer, false).await.unwrap();
|
||||
})
|
||||
.await
|
||||
.unwrap_err()
|
||||
.unwrap_err();
|
||||
for _ in 0..QUEUE_CAPACITY {
|
||||
let _ = rx.recv().await;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user