From c045ae7a9b509b8bde1fc3ec3d3f1c24445be469 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Fri, 28 Jan 2022 16:29:55 +0300 Subject: [PATCH] Fix random range for keys in test_gc_aggressive.py (#1199) --- test_runner/batch_others/test_gc_aggressive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_runner/batch_others/test_gc_aggressive.py b/test_runner/batch_others/test_gc_aggressive.py index 7601542f75..4747b463eb 100644 --- a/test_runner/batch_others/test_gc_aggressive.py +++ b/test_runner/batch_others/test_gc_aggressive.py @@ -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}')