test: fix assertion string for new on_launch error message
Multi-team refactor changed the error text from 'no team_id and no team_template_id' to 'no team_template_id and no config.phase_teams'. Assertion now just checks both key phrases.
This commit is contained in:
@@ -245,7 +245,7 @@ async fn on_launch_no_template_hard_fails() {
|
|||||||
let result = mission_orchestrator::on_launch(&pool, ws, owner, mission_id, None).await;
|
let result = mission_orchestrator::on_launch(&pool, ws, owner, mission_id, None).await;
|
||||||
let err = result.expect_err("no template + no team must be a hard error");
|
let err = result.expect_err("no template + no team must be a hard error");
|
||||||
assert!(
|
assert!(
|
||||||
err.contains("no team_id and no team_template_id"),
|
err.contains("no team_template_id") && err.contains("config.phase_teams"),
|
||||||
"unexpected error message: {err}"
|
"unexpected error message: {err}"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user