From c126bc11c7d8ab41fbb08b2c8fce2c625cc2a2eb Mon Sep 17 00:00:00 2001 From: Batuhan Taskaya Date: Thu, 13 Jan 2022 15:04:30 +0300 Subject: [PATCH] Make the stdin wait tests more reliable --- tests/test_uploads.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_uploads.py b/tests/test_uploads.py index 613007ba..d9de3ac9 100644 --- a/tests/test_uploads.py +++ b/tests/test_uploads.py @@ -128,7 +128,7 @@ def test_reading_from_stdin(httpbin, wait): # Since there is data, it doesn't matter if there # you wait or not. if wait: - time.sleep(0.75) + time.sleep(1) try: _, errs = process_2.communicate(timeout=0.25) @@ -142,7 +142,7 @@ def test_reading_from_stdin(httpbin, wait): def test_stdin_read_warning(httpbin): with stdin_processes(httpbin) as (process_1, process_2): # Wait before sending any data - time.sleep(0.75) + time.sleep(1) process_1.communicate(timeout=0.1, input=b"bleh\n") try: @@ -157,7 +157,7 @@ def test_stdin_read_warning(httpbin): def test_stdin_read_warning_with_quiet(httpbin): with stdin_processes(httpbin, "-qq") as (process_1, process_2): # Wait before sending any data - time.sleep(0.75) + time.sleep(1) process_1.communicate(timeout=0.1, input=b"bleh\n") try: