mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 04:52:55 +00:00
Fix random range for keys in test_gc_aggressive.py (#1199)
This commit is contained in:
committed by
GitHub
parent
602ccb7d5f
commit
c045ae7a9b
@@ -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}')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user