Stop printing in random_sleep
random_sleep is used in mistral unit testing code. we don't need to print anything, not useful and polluting logs. Change-Id: I89571d8734130002f0e12eb30cdb309ae35bf9a7 Signed-off-by: Arnaud Morin <arnaud.morin@gmail.com>
This commit is contained in:
@@ -331,11 +331,7 @@ def random_sleep(limit=1):
|
||||
|
||||
:param limit: Float number of seconds that a sleep period must not exceed.
|
||||
"""
|
||||
|
||||
seconds = random.Random().randint(0, limit * 1000) * 0.001
|
||||
|
||||
print("Sleep: %s sec..." % seconds)
|
||||
|
||||
time.sleep(seconds)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user