Remove unsafe code from App::test_async
I don't actually think it was correct to allow the future to borrow a mutable app reference. I went back to passing a wrapper around the refcell to async tests. They'll be a bit more annoying to write but also totally safe.
This commit is contained in:
@@ -109,9 +109,9 @@ mod tests {
|
||||
.unwrap();
|
||||
assert_eq!(
|
||||
workspace_view_1
|
||||
.as_ref(app)
|
||||
.read(app)
|
||||
.workspace
|
||||
.as_ref(app)
|
||||
.read(app)
|
||||
.worktrees()
|
||||
.len(),
|
||||
2
|
||||
|
||||
Reference in New Issue
Block a user