6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 13:33:07 +01:00

Added/Updated tests\bugs\gh_6976_test.py: added 'perf_issue_tag' string to the output related to performance problem. This text will serve as 'tag' for unambiguous detection of performance problem and set appropriate mark to the test outcome.

This commit is contained in:
pavel-zotov 2023-05-13 20:33:14 +03:00
parent e65d222224
commit 5eff5d7a44

View File

@ -172,7 +172,7 @@ def test_1(act_source: Action, act_broken: Action, capsys):
if median_connect_ms <= THRESHOLD_FOR_MAKE_CONNECT_MS: if median_connect_ms <= THRESHOLD_FOR_MAKE_CONNECT_MS:
print(msg_prefix + 'acceptable.') print(msg_prefix + 'acceptable.')
else: else:
print(msg_prefix + 'POOR: %s - more than threshold: %s' % ( '{:9g}'.format(median_connect_ms), '{:9g}'.format(THRESHOLD_FOR_MAKE_CONNECT_MS) )) print(msg_prefix + '/* perf_issue_tag */ POOR: %s - more than threshold: %s' % ( '{:9g}'.format(median_connect_ms), '{:9g}'.format(THRESHOLD_FOR_MAKE_CONNECT_MS) ))
print("Check values:" ) print("Check values:" )
for p in connect_establishing_ms: for p in connect_establishing_ms:
print(p) print(p)