From 2a8692c64f6720a47ef00d664b2ec214f8ae6957 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sun, 25 Jul 2021 22:50:00 -0700 Subject: [PATCH] Fix integration test to hopefully work on Alpine (#430). --- tests/integration/test_execute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_execute.py b/tests/integration/test_execute.py index d144f4d..6dc6467 100644 --- a/tests/integration/test_execute.py +++ b/tests/integration/test_execute.py @@ -134,7 +134,7 @@ def test_log_outputs_vents_other_processes_when_one_exits(): flexmock(module).should_receive('command_for_process').and_return('grep') process = subprocess.Popen( - ['shuf', '-zer', '-n10000', '{A..Z}'], stdout=subprocess.PIPE, stderr=subprocess.PIPE + ['xxd', '-l', '40000', '-p', '/dev/urandom'], stdout=subprocess.PIPE, stderr=subprocess.PIPE ) other_process = subprocess.Popen( ['true'], stdin=process.stdout, stdout=subprocess.PIPE, stderr=subprocess.STDOUT @@ -145,7 +145,7 @@ def test_log_outputs_vents_other_processes_when_one_exits(): flexmock(module).should_receive('output_buffer_for_process').with_args( other_process, (process.stdout,) ).and_return(other_process.stdout) - flexmock(process.stdout).should_call('readline').once() + flexmock(process.stdout).should_call('readline').at_least().once() module.log_outputs( (process, other_process),