Make TestAppContext
and its dependencies available only in tests
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
0d6f6bf5bb
commit
83a3402235
7 changed files with 161 additions and 98 deletions
|
@ -86,10 +86,13 @@ pub fn run_test(
|
|||
deterministic.clone(),
|
||||
seed,
|
||||
is_last_iteration,
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
cx.update(|cx| cx.remove_all_windows());
|
||||
deterministic.run_until_parked();
|
||||
cx.update(|_| {}); // flush effects
|
||||
|
||||
leak_detector.lock().detect();
|
||||
if is_last_iteration {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue