fix web playwright tests
This commit is contained in:
1 parent
1bbceac4e1
commit
c431429448
10 files changed
+21
-11
No files matched your search
@@ -5,6 +5,6 @@ pub fn use_root_context<T: 'static + Clone>(new: impl FnOnce() -> T) -> T {
|
||||
use_hook(|| {
|
||||
try_consume_context::<T>()
|
||||
// If no context is provided, create a new one at the root
|
||||
.unwrap_or_else(|| provide_root_context(new()).expect(" A runtime to exist"))
|
||||
.unwrap_or_else(|| provide_root_context(new()))
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user