Skip to content

Commit 14f38cc

Browse files
update tests
1 parent ad2e48e commit 14f38cc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

apps/bfd-pipeline-idr/test/test_pipeline.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,18 +642,21 @@ def _test_load_progress_concurrent(conn: Connection) -> None:
642642
)
643643
rows_2 = cur.fetchmany(1)
644644
assert len(rows_2) == 1
645+
job_row = rows_2[0]
646+
partition = job_row["batch_partition"]
647+
table = job_row["table_name"]
645648
cur = conn.execute(
646649
"""select * from idr.load_progress where job_id = 1
647650
and batch_partition = %(batch_partition)s
648651
and table_name = %(table_name)s
649652
""",
650653
{
651-
"batch_partition": rows_2[0]["batch_partition"],
652-
"table_name": rows_2[0]["table_name"],
654+
"batch_partition": partition,
655+
"table_name": table,
653656
},
654657
)
655658
rows = cur.fetchmany(1)
656-
assert rows_2[0]["max_run_ts"] == rows[0]["last_ts"]
659+
assert job_row["max_run_ts"] == rows[0]["last_ts"]
657660
# test table counts
658661
cur = conn.execute(
659662
"select DISTINCT table_name from idr.load_progress where job_id = 1"

0 commit comments

Comments
 (0)