From 2d7a392df94c67003ba189f3d8fb0c095dde855d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Wed, 25 Nov 2026 12:24:33 +0500 Subject: [PATCH] Test: compare the Playerbot Characters mount with the canonical server folder The Windows runner's temporary folder is a short path, so the test failed there. Co-Authored-By: Claude Sonnet 5.5 --- crates/coa-core/src/docker/lifecycle.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/coa-core/src/docker/lifecycle.rs b/crates/coa-core/src/docker/lifecycle.rs index 44a64b4..c0e35b9 100644 --- a/crates/coa-core/src/docker/lifecycle.rs +++ b/crates/coa-core/src/docker/lifecycle.rs @@ -1099,7 +1099,13 @@ mod tests { "database, then world, then auth" ); let calls = sim.calls_of("run"); - let mount = format!("{}:/srv/Extras/PlayerbotCharacters:ro", assets.display()); + // The containers get the canonical server folder; a temporary folder may be a short or linked path. + let host = std::fs::canonicalize(&root).unwrap(); + let host = crate::fsx::canonicalize_lenient(&host).unwrap_or(host); + let mount = format!( + "{}:/srv/Extras/PlayerbotCharacters:ro", + host.join(crate::modules::pbc::ASSET_DIR).display() + ); assert!(calls[1].args.windows(2).any(|w| w == ["--volume", mount.as_str()])); assert!(!calls[0].args.contains(&mount) && !calls[2].args.contains(&mount)); let exec = sim.calls_of("exec");