test: queue the OIDC test jobs once

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
hugocasa
2026-12-03 15:19:46 +01:00
co-authored by Claude Opus 5.5
parent 9e6c85263e
commit e8f14fadb8
+1 -2
View File
@@ -394,8 +394,7 @@ async fn test_oidc_claim_carries_the_presented_scopes(db: Pool<Postgres>) -> any
.execute(&db)
.await?;
sqlx::query(
"INSERT INTO v2_job_queue (id, workspace_id, running, scheduled_for, tag)
SELECT id, workspace_id, true, now(), tag FROM v2_job WHERE id = ANY($1)",
"UPDATE v2_job_queue q SET tag = j.tag FROM v2_job j WHERE q.id = j.id AND q.id = ANY($1)",
)
.bind([Uuid::parse_str(OIDC_JOB)?, Uuid::parse_str(OPEN_JOB)?])
.execute(&db)