@@ -43,7 +43,7 @@ def test_log_output_default_run(tt_cmd, mock_env_dir):
43
43
expecting_lines .append (f"app1:inst{ inst_n } : line { i } " )
44
44
with ProcessTextPipe ((tt_cmd , "log" ), mock_env_dir ) as process :
45
45
output = pipe_wait_all (process , expecting_lines )
46
- assert process .wait (2 ) == 0 , "Exit status not a success"
46
+ assert process .wait (10 ) == 0 , "Exit status not a success"
47
47
48
48
assert "app0:inst3" not in output
49
49
assert "app1:inst3" not in output
@@ -57,7 +57,7 @@ def test_log_limit_lines_count(tt_cmd, mock_env_dir):
57
57
expecting_lines .append (f"app1:inst{ inst_n } : line { i } " )
58
58
with ProcessTextPipe ((tt_cmd , "log" , "-n" , "3" ), mock_env_dir ) as process :
59
59
pipe_wait_all (process , expecting_lines )
60
- assert process .wait (2 ) == 0 , "Exit status not a success"
60
+ assert process .wait (10 ) == 0 , "Exit status not a success"
61
61
62
62
63
63
def test_log_more_lines (tt_cmd , mock_env_dir ):
@@ -69,7 +69,7 @@ def test_log_more_lines(tt_cmd, mock_env_dir):
69
69
70
70
with ProcessTextPipe ((tt_cmd , "log" , "-n" , "300" ), mock_env_dir ) as process :
71
71
pipe_wait_all (process , expecting_lines )
72
- assert process .wait (2 ) == 0 , "Exit status not a success"
72
+ assert process .wait (10 ) == 0 , "Exit status not a success"
73
73
74
74
75
75
def test_log_want_zero (tt_cmd , mock_env_dir ):
@@ -91,7 +91,7 @@ def test_log_specific_instance(tt_cmd, mock_env_dir):
91
91
assert "app0:inst0" not in output
92
92
assert "app0:inst2" not in output
93
93
assert "app1" not in output
94
- assert process .wait (2 ) == 0 , "Exit status not a success"
94
+ assert process .wait (10 ) == 0 , "Exit status not a success"
95
95
96
96
97
97
def test_log_specific_app (tt_cmd , mock_env_dir ):
@@ -103,13 +103,13 @@ def test_log_specific_app(tt_cmd, mock_env_dir):
103
103
with ProcessTextPipe ((tt_cmd , "log" , "app1" ), mock_env_dir ) as process :
104
104
output = pipe_wait_all (process , expecting_lines )
105
105
assert "app0" not in output
106
- assert process .wait (2 ) == 0 , "Exit status not a success"
106
+ assert process .wait (10 ) == 0 , "Exit status not a success"
107
107
108
108
109
109
def test_log_negative_lines_num (tt_cmd , mock_env_dir ):
110
110
with ProcessTextPipe ((tt_cmd , "log" , "-n" , "-10" ), mock_env_dir ) as process :
111
111
pipe_wait_all (process , "negative" )
112
- assert process .wait (2 ) != 0 , "Exit status should be error code"
112
+ assert process .wait (10 ) != 0 , "Exit status should be error code"
113
113
114
114
115
115
def test_log_no_app (tt_cmd , mock_env_dir ):
@@ -180,7 +180,7 @@ def test_log_dir_removed_after_follow(tt_cmd, mock_env_dir: Path):
180
180
shutil .rmtree (dir )
181
181
182
182
pipe_wait_all (process , "Failed to detect creation of" , timeout = 2 )
183
- assert process .wait (2 ) == 0 , "Exit status not a success"
183
+ assert process .wait (10 ) == 0 , "Exit status not a success"
184
184
185
185
186
186
# There are two apps in this test: app0 and app1. After removing app0 dirs,
@@ -209,4 +209,4 @@ def test_log_dir_partially_removed_after_follow(tt_cmd, mock_env_dir: Path):
209
209
shutil .rmtree (dir )
210
210
211
211
pipe_wait_all (process , "Failed to detect creation of" )
212
- assert process .wait (2 ) == 0 , "Exit status not a success"
212
+ assert process .wait (10 ) == 0 , "Exit status not a success"
0 commit comments