From 87abf06e78ba4ff13957ad0f4a2653da9c766131 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Thu, 18 Dec 2025 21:08:43 +0000 Subject: [PATCH] fix: flaky tests 5 (#8282) --- codex-rs/core/tests/suite/shell_snapshot.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codex-rs/core/tests/suite/shell_snapshot.rs b/codex-rs/core/tests/suite/shell_snapshot.rs index cee44f0d9..8357fb8a9 100644 --- a/codex-rs/core/tests/suite/shell_snapshot.rs +++ b/codex-rs/core/tests/suite/shell_snapshot.rs @@ -22,6 +22,8 @@ use pretty_assertions::assert_eq; use serde_json::json; use std::path::PathBuf; use tokio::fs; +use tokio::time::Duration; +use tokio::time::sleep; #[derive(Debug)] struct SnapshotRun { @@ -333,6 +335,7 @@ async fn shell_snapshot_deleted_after_shutdown_with_skills() -> Result<()> { drop(codex); drop(harness); + sleep(Duration::from_millis(150)).await; assert_eq!( snapshot_path.exists(),