瀏覽代碼

fix: spawn task

Jonathan Kelley 2 年之前
父節點
當前提交
cee63ae370
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      packages/core/tests/miri_stress.rs

+ 1 - 3
packages/core/tests/miri_stress.rs

@@ -12,9 +12,7 @@ fn test_memory_leak() {
     fn app(cx: Scope) -> Element {
     fn app(cx: Scope) -> Element {
         let val = cx.generation();
         let val = cx.generation();
 
 
-        cx.spawn(async {
-            tokio::time::sleep(std::time::Duration::from_millis(100000)).await;
-        });
+        cx.spawn(async {});
 
 
         if val == 2 || val == 4 {
         if val == 2 || val == 4 {
             return cx.render(rsx!(()));
             return cx.render(rsx!(()));