|
2 | 2 |
|
3 | 3 | """ |
4 | 4 | ID: issue-6802 |
5 | | -ISSUE: 6802 |
6 | | -TITLE: When the statement timeout is set, it causes the lock manager to delay |
7 | | - reporting deadlocks until timeout is expired |
| 5 | +ISSUE: https://github.com/FirebirdSQL/firebird/issues/6802 |
| 6 | +TITLE: When the statement timeout is set, it causes the lock manager to delay reporting deadlocks until timeout is expired |
8 | 7 | DESCRIPTION: |
9 | | -NOTES: |
10 | | -[20.05.2021] |
11 | | - adjusted expected_stderr for case-2: non-suppressed exception raises instead of issuing gdscode. |
12 | 8 | FBTEST: bugs.gh_6802 |
| 9 | +NOTES: |
| 10 | + [20.05.2021] pcizar |
| 11 | + adjusted expected_stderr for case-2: non-suppressed exception raises instead of issuing gdscode. |
| 12 | +
|
| 13 | + [15.03.2024] pzotov |
| 14 | + Added combine_output in order to see concrete case where test fails. |
| 15 | + Checked on Windows, ServerMode = CS/SS: 4.0.5.3077, 5.0.1.1360, 6.0.0.288 |
13 | 16 | """ |
14 | 17 |
|
15 | 18 | import pytest |
|
168 | 171 |
|
169 | 172 |
|
170 | 173 | -- ####################### |
171 | | - -- ### c a s e N 3 ### |
| 174 | + -- ### c a s e N 4 ### |
172 | 175 | -- ####################### |
173 | 176 | -- Initial state: |
174 | 177 | -- * statement_timeout > 0 (no matter greater or less than deadlocktimeout); |
|
209 | 212 | act = isql_act('db', test_script, substitutions=[('[ \t]+', ' ')]) |
210 | 213 |
|
211 | 214 | expected_stdout = """ |
212 | | - RAISED_GDS_01 335544336 |
213 | | - WAITING_TIME_01 Acceptable. |
214 | | -
|
215 | | - WAITING_TIME_02 Acceptable. |
| 215 | + RAISED_GDS_01 335544336 |
| 216 | + WAITING_TIME_01 Acceptable. |
216 | 217 |
|
217 | | - WAITING_TIME_03 Acceptable. |
218 | 218 |
|
219 | | - RAISED_GDS_04 335544336 |
220 | | - WAITING_TIME_04 Acceptable. |
221 | | -""" |
222 | | - |
223 | | -expected_stderr = """ |
224 | 219 | Statement failed, SQLSTATE = HY008 |
225 | 220 | operation was cancelled |
226 | 221 | -Attachment level timeout expired. |
| 222 | + WAITING_TIME_02 Acceptable. |
| 223 | + |
227 | 224 |
|
228 | 225 | Statement failed, SQLSTATE = HY008 |
229 | 226 | operation was cancelled |
230 | 227 | -Attachment level timeout expired. |
| 228 | + WAITING_TIME_03 Acceptable. |
| 229 | +
|
| 230 | +
|
| 231 | + RAISED_GDS_04 335544336 |
| 232 | + WAITING_TIME_04 Acceptable. |
231 | 233 | """ |
232 | 234 |
|
233 | | -@pytest.mark.version('>=5.0') |
| 235 | +@pytest.mark.version('>=4.0.0') |
234 | 236 | def test_1(act: Action): |
235 | 237 | act.expected_stdout = expected_stdout |
236 | | - act.expected_stderr = expected_stderr |
237 | | - act.execute() |
238 | | - assert (act.clean_stderr == act.clean_expected_stderr and |
239 | | - act.clean_stdout == act.clean_expected_stdout) |
| 238 | + act.execute(combine_output = True) |
| 239 | + assert act.clean_stdout == act.clean_expected_stdout |
0 commit comments