Skip to content

Commit 1f6537c

Browse files
committed
Revert change in test
1 parent 6490c43 commit 1f6537c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vm/src/hint_processor/builtin_hint_processor/builtin_hint_processor_definition.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,10 @@ mod tests {
624624
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
625625
fn run_unknown_hint() {
626626
let hint_code = "random_invalid_code";
627-
let (err, _) = compile_hint!(hint_code, &HashMap::new());
627+
let mut vm = vm!();
628628
assert_matches!(
629-
err,Err(crate::vm::errors::vm_errors::VirtualMachineError::CompileHintFail(bx)) if bx.as_ref() == hint_code
629+
run_hint!(vm, HashMap::new(), hint_code),
630+
Err(HintError::UnknownHint(bx)) if bx.as_ref() == hint_code
630631
);
631632
}
632633

0 commit comments

Comments
 (0)