From 8fa547e7ef4f2260fd9cc66c3a40c19b9e0a69d5 Mon Sep 17 00:00:00 2001 From: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> Date: Mon, 3 Nov 2025 12:52:19 -0800 Subject: [PATCH] Allow windows more time to enter benchmark for interrupt benchmark Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> --- src/hyperlight_host/benches/benchmarks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hyperlight_host/benches/benchmarks.rs b/src/hyperlight_host/benches/benchmarks.rs index df9808494..ca02def0e 100644 --- a/src/hyperlight_host/benches/benchmarks.rs +++ b/src/hyperlight_host/benches/benchmarks.rs @@ -142,9 +142,9 @@ fn guest_call_benchmark(c: &mut Criterion) { start_barrier_clone.wait(); // Small delay to ensure the guest function is running in VM before interrupting - thread::sleep(std::time::Duration::from_millis(1)); + thread::sleep(std::time::Duration::from_millis(10)); let kill_start = Instant::now(); - interrupt_handle.kill(); + assert!(interrupt_handle.kill()); kill_start });