Skip to content

Commit fb53268

Browse files
committed
Fix func_ref_test
1 parent 4b6841d commit fb53268

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/vm/src/cache.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,8 @@ mod tests {
17521752
unsafe { Cache::new(make_testing_options()).unwrap() };
17531753

17541754
// making sure this doesn't panic
1755-
cache.store_code(&wasm, true, true).unwrap();
1755+
let err = cache.store_code(&wasm, true, true).unwrap_err();
1756+
assert!(err.to_string().contains("FuncRef"));
17561757
}
17571758

17581759
#[test]

0 commit comments

Comments
 (0)