Dungeon: the play refusal's text is pinned for seeding and failed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1bd9578489
commit
9a5a4f1ee5
1 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue