Skip to content

Commit e3a45f0

Browse files
committed
Unignore forgotten test
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent b603cec commit e3a45f0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/hyperlight_host/src/sandbox/initialized_multi_use.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,6 @@ mod tests {
512512

513513
/// Make sure input/output buffers are properly reset after guest call (with host call)
514514
#[test]
515-
#[ignore = "added this test before fixing bug"]
516515
fn host_func_error() {
517516
let path = simple_guest_as_string().unwrap();
518517
let mut sandbox = UninitializedSandbox::new(GuestBinary::FilePath(path), None).unwrap();
@@ -533,9 +532,7 @@ mod tests {
533532
.unwrap_err();
534533

535534
assert!(
536-
matches!(result, HyperlightError::Error(ref msg) if msg == "hi"),
537-
"Expected HyperlightError::Error('hi'), got {:?}",
538-
result
535+
matches!(result, HyperlightError::GuestError(code, msg) if code == ErrorCode::HostFunctionError && msg == "hi"),
539536
);
540537
}
541538
}

0 commit comments

Comments
 (0)