From 6b781fe47c8583b9831374be193aff0f07ec9da5 Mon Sep 17 00:00:00 2001 From: Steven Enamakel Date: Wed, 21 Oct 2026 05:05:53 +0530 Subject: [PATCH] fix(browser): await confirmed session closes Co-authored-by: Medulla --- crates/tinycomputer-browser/src/fake/mod.rs | 43 ++++++++++++--- .../tinycomputer-browser/src/sessions/mod.rs | 22 ++++++-- .../sessions_tests/lifecycle_tests.rs | 54 ++++++++++++++++++- 3 files changed, 109 insertions(+), 10 deletions(-) diff --git a/crates/tinycomputer-browser/src/fake/mod.rs b/crates/tinycomputer-browser/src/fake/mod.rs index 8ab5ec21c..283a1d736 100644 --- a/crates/tinycomputer-browser/src/fake/mod.rs +++ b/crates/tinycomputer-browser/src/fake/mod.rs @@ -3,7 +3,10 @@ #![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)] -use std::sync::{Arc, Mutex}; +use std::{ + sync::{Arc, Mutex}, + time::Duration, +}; use serde_json::{Value, json}; @@ -38,6 +41,8 @@ pub(crate) struct Fake { script: Arc