From 9a5a4f1ee5afd0eb25ca1ba2a8a6582565eba623 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 2 Dec 2026 22:25:19 +0100 Subject: [PATCH] Dungeon: the play refusal's text is pinned for seeding and failed Co-Authored-By: Claude Sonnet 5.5 --- crates/ghostlight-dungeon/src/api.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ghostlight-dungeon/src/api.rs b/crates/ghostlight-dungeon/src/api.rs index 7c083f0..44c3ece 100644 --- a/crates/ghostlight-dungeon/src/api.rs +++ b/crates/ghostlight-dungeon/src/api.rs @@ -1073,11 +1073,13 @@ mod tests { let (status, body) = play_text(&app, &cookie, &timeline, "I look around.", None).await; assert_eq!((status, body["status"].as_str()), (StatusCode::CONFLICT, Some("seeding")), "{body}"); + assert_eq!(body["error"], "this world is still being seeded"); app.rig.port.push(Err("http://10.0.0.7:9/secret endpoint down")); eventually(async || timeline_status(&app, &cookie, &timeline).await.filter(|(state, _)| state == "failed")).await; let (status, body) = play_text(&app, &cookie, &timeline, "I look around.", None).await; assert_eq!((status, body["status"].as_str()), (StatusCode::CONFLICT, Some("failed")), "{body}"); + assert_eq!(body["error"], "this world's seed did not finish"); assert!(body["reason"].as_str().unwrap().contains("seed"), "{body}"); // A Draft the catalog calls Ready is still not played.