mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 21:43:06 +01:00
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
This commit is contained in:
parent
e08a65108a
commit
28ef5c826c
@ -2,14 +2,17 @@
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
ID: issue-6802
|
ID: issue-6802
|
||||||
ISSUE: 6802
|
ISSUE: https://github.com/FirebirdSQL/firebird/issues/6802
|
||||||
TITLE: When the statement timeout is set, it causes the lock manager to delay
|
TITLE: When the statement timeout is set, it causes the lock manager to delay reporting deadlocks until timeout is expired
|
||||||
reporting deadlocks until timeout is expired
|
|
||||||
DESCRIPTION:
|
DESCRIPTION:
|
||||||
NOTES:
|
|
||||||
[20.05.2021]
|
|
||||||
adjusted expected_stderr for case-2: non-suppressed exception raises instead of issuing gdscode.
|
|
||||||
FBTEST: bugs.gh_6802
|
FBTEST: bugs.gh_6802
|
||||||
|
NOTES:
|
||||||
|
[20.05.2021] pcizar
|
||||||
|
adjusted expected_stderr for case-2: non-suppressed exception raises instead of issuing gdscode.
|
||||||
|
|
||||||
|
[15.03.2024] pzotov
|
||||||
|
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
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -168,7 +171,7 @@ test_script = """
|
|||||||
|
|
||||||
|
|
||||||
-- #######################
|
-- #######################
|
||||||
-- ### c a s e N 3 ###
|
-- ### c a s e N 4 ###
|
||||||
-- #######################
|
-- #######################
|
||||||
-- Initial state:
|
-- Initial state:
|
||||||
-- * statement_timeout > 0 (no matter greater or less than deadlocktimeout);
|
-- * statement_timeout > 0 (no matter greater or less than deadlocktimeout);
|
||||||
@ -212,28 +215,25 @@ expected_stdout = """
|
|||||||
RAISED_GDS_01 335544336
|
RAISED_GDS_01 335544336
|
||||||
WAITING_TIME_01 Acceptable.
|
WAITING_TIME_01 Acceptable.
|
||||||
|
|
||||||
|
|
||||||
|
Statement failed, SQLSTATE = HY008
|
||||||
|
operation was cancelled
|
||||||
|
-Attachment level timeout expired.
|
||||||
WAITING_TIME_02 Acceptable.
|
WAITING_TIME_02 Acceptable.
|
||||||
|
|
||||||
|
|
||||||
|
Statement failed, SQLSTATE = HY008
|
||||||
|
operation was cancelled
|
||||||
|
-Attachment level timeout expired.
|
||||||
WAITING_TIME_03 Acceptable.
|
WAITING_TIME_03 Acceptable.
|
||||||
|
|
||||||
|
|
||||||
RAISED_GDS_04 335544336
|
RAISED_GDS_04 335544336
|
||||||
WAITING_TIME_04 Acceptable.
|
WAITING_TIME_04 Acceptable.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
expected_stderr = """
|
@pytest.mark.version('>=4.0.0')
|
||||||
Statement failed, SQLSTATE = HY008
|
|
||||||
operation was cancelled
|
|
||||||
-Attachment level timeout expired.
|
|
||||||
|
|
||||||
Statement failed, SQLSTATE = HY008
|
|
||||||
operation was cancelled
|
|
||||||
-Attachment level timeout expired.
|
|
||||||
"""
|
|
||||||
|
|
||||||
@pytest.mark.version('>=5.0')
|
|
||||||
def test_1(act: Action):
|
def test_1(act: Action):
|
||||||
act.expected_stdout = expected_stdout
|
act.expected_stdout = expected_stdout
|
||||||
act.expected_stderr = expected_stderr
|
act.execute(combine_output = True)
|
||||||
act.execute()
|
assert act.clean_stdout == act.clean_expected_stdout
|
||||||
assert (act.clean_stderr == act.clean_expected_stderr and
|
|
||||||
act.clean_stdout == act.clean_expected_stdout)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user