fix: get miri passing

This commit is contained in:
Jonathan Kelley committed 2022-12-16 20:26:04 -08:00
1 parent 4d73ffa361
commit 261d688b6e
4 files changed
+30 -13

No files matched your search

+3 -3
View File
@@ -62,11 +62,11 @@ fn contexts_drop() {
_ = dom.render_immediate();
}
#[tokio::test]
async fn tasks_drop() {
#[test]
fn tasks_drop() {
fn app(cx: Scope) -> Element {
cx.spawn(async {
tokio::time::sleep(std::time::Duration::from_millis(100000)).await;
// tokio::time::sleep(std::time::Duration::from_millis(100000)).await;
});
cx.render(rsx! {