Skip to content

Commit 1547e21

Browse files
author
Ekaterina Sokolova
committed
[PGPRO-10083] Set guc to false in python test.
pg_query_state.enable_timing and enable_buffers default to false. But we should forcefully set guc variables to false in case of its true values in the configuration file. Tags: pg_query_state.
1 parent a5afb51 commit 1547e21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_cases.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@ def test_timing_buffers_conflicts(config):
379379
timing_pattern = '(?:running time=\d+.\d+)|(?:actual time=\d+.\d+..\d+.\d+)'
380380
buffers_pattern = 'Buffers:'
381381

382+
common.set_guc(acon, 'pg_query_state.enable_timing', 'off')
383+
common.set_guc(acon, 'pg_query_state.enable_buffers', 'off')
384+
382385
qs, notices = common.onetime_query_state(config, acon, query, {'timing': True, 'buffers': False})
383386
assert len(qs) == 1 and not re.search(timing_pattern, qs[0][3])
384387
assert notices == ['WARNING: timing statistics disabled\n']

0 commit comments

Comments
 (0)