Skip to content

Commit 4c11bde

Browse files
committed
test_threaded.py: remove checking for elapsed time
This caused errors on windows when tests are running slow. If we had numbers for sequential processing then this could compare with those, but implementing that is overkill.
1 parent b5ef979 commit 4c11bde

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

tests/test_threaded.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ def handler(_request: Request):
3333

3434
threaded.expect_request("/foo").respond_with_handler(handler)
3535

36-
t_start = time.perf_counter()
37-
3836
number_of_connections = 5
3937
conns = [http.client.HTTPConnection(threaded.host, threaded.port) for _ in range(number_of_connections)]
4038

@@ -51,10 +49,4 @@ def handler(_request: Request):
5149
for conn in conns:
5250
conn.close()
5351

54-
t_elapsed = time.perf_counter() - t_start
55-
5652
assert len(thread_ids) == len(set(thread_ids)), "thread ids returned should be unique"
57-
58-
assert (
59-
t_elapsed < number_of_connections * sleep_time * 0.9
60-
), "elapsed time should be less than processing sequential requests"

0 commit comments

Comments
 (0)