Skip to content

Commit 28ef5c8

Browse files
committed
Added/Updated tests\bugs\gh_6802_test.py: Added combine_output in order to see concrete case where test fails. Checked on Windows, ServerMode = CS/SS: 4.0.5.3077, 5.0.1.1360, 6.0.0.288
1 parent e08a651 commit 28ef5c8

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

tests/bugs/gh_6802_test.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
"""
44
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
87
DESCRIPTION:
9-
NOTES:
10-
[20.05.2021]
11-
adjusted expected_stderr for case-2: non-suppressed exception raises instead of issuing gdscode.
128
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
1316
"""
1417

1518
import pytest
@@ -168,7 +171,7 @@
168171
169172
170173
-- #######################
171-
-- ### c a s e N 3 ###
174+
-- ### c a s e N 4 ###
172175
-- #######################
173176
-- Initial state:
174177
-- * statement_timeout > 0 (no matter greater or less than deadlocktimeout);
@@ -209,31 +212,28 @@
209212
act = isql_act('db', test_script, substitutions=[('[ \t]+', ' ')])
210213

211214
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.
216217
217-
WAITING_TIME_03 Acceptable.
218218
219-
RAISED_GDS_04 335544336
220-
WAITING_TIME_04 Acceptable.
221-
"""
222-
223-
expected_stderr = """
224219
Statement failed, SQLSTATE = HY008
225220
operation was cancelled
226221
-Attachment level timeout expired.
222+
WAITING_TIME_02 Acceptable.
223+
227224
228225
Statement failed, SQLSTATE = HY008
229226
operation was cancelled
230227
-Attachment level timeout expired.
228+
WAITING_TIME_03 Acceptable.
229+
230+
231+
RAISED_GDS_04 335544336
232+
WAITING_TIME_04 Acceptable.
231233
"""
232234

233-
@pytest.mark.version('>=5.0')
235+
@pytest.mark.version('>=4.0.0')
234236
def test_1(act: Action):
235237
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

Comments
 (0)