Skip to content

Commit af26283

Browse files
authored
Allow windows more time to enter benchmark for interrupt benchmark (#1004)
Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com>
1 parent 8c67b94 commit af26283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hyperlight_host/benches/benchmarks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ fn guest_call_benchmark(c: &mut Criterion) {
142142
start_barrier_clone.wait();
143143

144144
// Small delay to ensure the guest function is running in VM before interrupting
145-
thread::sleep(std::time::Duration::from_millis(1));
145+
thread::sleep(std::time::Duration::from_millis(10));
146146
let kill_start = Instant::now();
147-
interrupt_handle.kill();
147+
assert!(interrupt_handle.kill());
148148
kill_start
149149
});
150150

0 commit comments

Comments
 (0)