Fix random range for keys in test_gc_aggressive.py (#1199)

This commit is contained in:
Konstantin Knizhnik
2022-01-28 16:29:55 +03:00
committed by GitHub
parent 602ccb7d5f
commit c045ae7a9b

View File

@@ -27,7 +27,7 @@ async def update_table(pg: Postgres):
while updates_performed < updates_to_perform:
updates_performed += 1
id = random.randrange(0, num_rows)
id = random.randrange(1, num_rows)
row = await pg_conn.fetchrow(f'UPDATE foo SET counter = counter + 1 WHERE id = {id}')