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:
parent
7ec9cc08c7
commit
43d230cb2d
8 changed files with 366 additions and 53 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue