Introduce a gpui2::test macro
Co-Authored-By: Conrad Irwin <conrad.irwin@gmail.com> Co-Authored-By: Max Brunsfeld <max@zed.dev> Co-Authored-By: Kyle <kyle@zed.dev>
This commit is contained in:
co-authored by
Conrad Irwin
Max Brunsfeld
Kyle
parent
7ec9cc08c7
commit
43d230cb2d
@@ -75,6 +75,10 @@ impl TestDispatcher {
|
||||
count: self.state.lock().random.gen_range(0..10),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn run_until_parked(&self) {
|
||||
while self.poll() {}
|
||||
}
|
||||
}
|
||||
|
||||
impl Clone for TestDispatcher {
|
||||
|
||||
Reference in New Issue
Block a user