We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c10e2e commit 323ae41Copy full SHA for 323ae41
src/hyperlight_host/tests/sandbox_host_tests.rs
@@ -351,10 +351,13 @@ fn host_function_error() -> Result<()> {
351
// call guest function that calls host function
352
let mut init_sandbox: MultiUseSandbox = sandbox.evolve()?;
353
let msg = "Hello world";
354
- let res = init_sandbox
355
- .call::<i32>("GuestMethod1", msg.to_string())
356
- .unwrap_err();
357
- assert!(matches!(res, HyperlightError::Error(msg) if msg == "Host function error!"));
+
+ for _ in 0..1000 {
+ let res = init_sandbox
+ .call::<i32>("GuestMethod1", msg.to_string())
358
+ .unwrap_err();
359
+ assert!(matches!(res, HyperlightError::Error(msg) if msg == "Host function error!"));
360
+ }
361
}
362
Ok(())
363
0 commit comments