Skip to content

Commit

Permalink
fix: relax time constraint in block exec test (#4653)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobowitz committed Apr 21, 2022
1 parent e92e26c commit 8a3083f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/serve/executors/test_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def start_runtime(args, cancel_event):
end_time = time.time()

assert all(result.docs.texts == ['BlockingExecutor'] for result in results)
assert end_time - start_time < (REQUEST_COUNT * SLEEP_TIME) + 0.2
assert end_time - start_time < (REQUEST_COUNT * SLEEP_TIME) * 2.0

cancel_event.set()
runtime_thread.join()

0 comments on commit 8a3083f

Please sign in to comment.