소스 검색

fix drop order test

Evan Almloff 1 년 전
부모
커밋
e5a11aa2a5
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      packages/core/tests/miri_simple.rs

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

@@ -127,9 +127,11 @@ fn hooks_drop_before_contexts() {
 
             impl Drop for ReadsContextOnDrop {
                 fn drop(&mut self) {
-                    let _ = consume_context::<i32>();
+                    assert_eq!(123, consume_context::<i32>());
                 }
             }
+
+            ReadsContextOnDrop
         });
 
         rsx! { div {} }