Skip to content

Commit

Permalink
Fix initial idle wait
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Turov committed Apr 21, 2022
1 parent 16e93d3 commit 55015e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hstest/testing/process_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, *args, check_early_finish=False, register_output=True, regist
self.output_diff_history_max = 2

self.initial_idle_wait = True
self.initial_idle_wait_max = 10
self.initial_idle_wait_time = 150

self.check_early_finish = check_early_finish
self.register_output = register_output
Expand Down Expand Up @@ -183,6 +183,11 @@ def check_cpuload(self):
sleep(0.01)
self.check_alive()

if self.initial_idle_wait:
self.initial_idle_wait_time -= 1
if self.initial_idle_wait_time == 0:
self.initial_idle_wait = False

def check_output(self):
output_len_prev = len(self.stdout)

Expand Down

0 comments on commit 55015e4

Please sign in to comment.