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 49e248a commit ce8e4fcCopy full SHA for ce8e4fc
src/hyperlight_host/tests/sandbox_host_tests.rs
@@ -366,10 +366,13 @@ fn host_function_error() -> Result<()> {
366
// call guest function that calls host function
367
let mut init_sandbox: MultiUseSandbox = sandbox.evolve()?;
368
let msg = "Hello world";
369
- let res = init_sandbox
370
- .call::<i32>("GuestMethod1", msg.to_string())
371
- .unwrap_err();
372
- 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())
373
+ .unwrap_err();
374
+ assert!(matches!(res, HyperlightError::Error(msg) if msg == "Host function error!"));
375
+ }
376
}
377
Ok(())
378
0 commit comments