mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-27 09:47:34 +03:00
fix test
This commit is contained in:
parent
bed60f544f
commit
eb24408cd3
@ -62,9 +62,10 @@ mod tests {
|
||||
let dispatcher2 = dispatcher.clone();
|
||||
let mut rx = dispatcher2.run(Duration::from_millis(10)).unwrap();
|
||||
|
||||
tokio::time::sleep(Duration::from_millis(50)).await;
|
||||
|
||||
dispatcher.stop().unwrap();
|
||||
spawn(async move {
|
||||
tokio::time::sleep(Duration::from_millis(50)).await;
|
||||
dispatcher.stop().unwrap();
|
||||
});
|
||||
|
||||
let mut count = 0;
|
||||
while let Some(event) = rx.recv().await {
|
||||
|
Loading…
Reference in New Issue
Block a user