From f0adcc61c566d0123ceb969469daf178ed0c3009 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 9 Oct 2026 20:41:38 +0200 Subject: [PATCH] play-faults test: read the fault-closed turn's id off the view The table mints the turn id, so the log assertion must read it from the stored turn, not the id the caller passed. Co-Authored-By: Claude Opus 5.5 --- crates/ghostlight-dungeon/src/play.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ghostlight-dungeon/src/play.rs b/crates/ghostlight-dungeon/src/play.rs index a7dc346..1586ce6 100644 --- a/crates/ghostlight-dungeon/src/play.rs +++ b/crates/ghostlight-dungeon/src/play.rs @@ -8175,8 +8175,8 @@ pub(crate) mod tests { directory.path().join("play-turn-v1.cc"), ) .unwrap(); - let turn_id = test_turn_id(430); - table.run(&fixture.principal, turn_id.clone(), "Hello?".into()).await.unwrap(); + table.run(&fixture.principal, test_turn_id(430), "Hello?".into()).await.unwrap(); + let turn_id = table.current_turn_view().await.unwrap().turn_id; let line = logs .text()