Complete transport fixtures for finalization regressions

This commit is contained in:
Scott Werner 2026-10-05 17:16:13 -04:00
parent 8cb57cf867
commit ad980607e8
2 changed files with 10 additions and 7 deletions

View file

@ -1065,7 +1065,7 @@ mod tests {
when.method("GET")
.path(format!("/api/v1/runs/{run_id}/questions"));
then.status(200)
.json_body(serde_json::json!({ "data": [] }));
.json_body(serde_json::json!({ "data": [], "meta": { "has_more": false } }));
})
.await;
let waiting = server
@ -1079,7 +1079,7 @@ mod tests {
.await;
let client = server_client::Client::new_no_proxy(&server.base_url()).unwrap();
let task = tokio::spawn(async move {
attach_petri_run_with_client(
Box::pin(attach_petri_run_with_client(
&client,
&run_id,
&state,
@ -1091,7 +1091,7 @@ mod tests {
json_output: true,
},
Printer::Default,
)
))
.await
.unwrap()
});

View file

@ -1248,10 +1248,13 @@ mod tests {
.await
.unwrap();
assert_eq!(after_count, platform_count);
let (rebuilt, _, _) =
fabro_petri::test_support::rebuild(&state.db_pool, &state.db_pool, run_id)
.await
.unwrap();
let (rebuilt, _, _) = fabro_petri::test_support::rebuild(
&state.db_pool,
&state.stores.run_summaries.pool(),
run_id,
)
.await
.unwrap();
let rebuilt = rebuilt.unwrap();
assert_eq!(rebuilt.status, expected);
assert_eq!(