mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 14:04:20 +01:00
Flaky redis events tests (#1072)
* Fix flaky redis tests * Add a random integer helper for tests
This commit is contained in:
@@ -239,6 +239,10 @@ def random_string(n=5):
|
||||
)
|
||||
|
||||
|
||||
def random_int(start=2147483647, stop=None, step=1):
|
||||
return random.randrange(start, stop, step)
|
||||
|
||||
|
||||
def gen_challenge(
|
||||
db,
|
||||
name="chal_name",
|
||||
|
||||
Reference in New Issue
Block a user