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.