Skip to content

Commit

Permalink
Make test not flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJBoyer committed Jun 17, 2024
1 parent 36382ae commit af30a4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/tests/src/db/test_bulk_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ class Number:
num: int


_next_id = 0


def get_random_number_object() -> Number:
global _next_id
_next_id += 1
return Number(
id=str(random.randint(1000000, 9999999)),
id=str(_next_id),
num=random.randint(1, 10000),
)

Expand Down

0 comments on commit af30a4a

Please sign in to comment.