mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-28 08:06:16 +00:00
test: keep the old running run outside the history window
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d3e177b6a0
commit
6c03213fdf
@@ -277,13 +277,15 @@ async fn test_input_history_started_by(db: Pool<Postgres>) -> anyhow::Result<()>
|
||||
)
|
||||
.await?;
|
||||
|
||||
// A run still in progress, older than the one page entry a newer run would fill.
|
||||
// A run still in progress, older than the two runs a one-entry page reads by creation time.
|
||||
let long_running = insert_run(
|
||||
&db,
|
||||
Run { path: "f/test/long", running: true, at: 13, ..Run::default() },
|
||||
)
|
||||
.await?;
|
||||
insert_run(&db, Run { path: "f/test/long", at: 14, ..Run::default() }).await?;
|
||||
for at in [14, 15] {
|
||||
insert_run(&db, Run { path: "f/test/long", at, ..Run::default() }).await?;
|
||||
}
|
||||
|
||||
// test-user-2 can read the runs of its own script, not the flow run they are steps of nor
|
||||
// that flow's loop container.
|
||||
|
||||
Reference in New Issue
Block a user