Subscription tests vs log_error_verbosity

Started by Andrew Dunstanalmost 4 years ago3 messageshackers
Jump to latest
#1Andrew Dunstan
andrew@dunslane.net

I have just got to the bottom of why the new subscription tests
027_nosuperuser.pl and 029_on_error.pl have been failing for me - it's
because my test setup has log_error_verbosity set to 'verbose'. Either
we should force log_error_verbosity to 'default' for these tests, or we
should make the regexes we're testing for more forgiving as in the attached.

cheers

andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

Attachments:

fix-subscription-tests-verbose-errors.patchtext/x-patch; charset=UTF-8; name=fix-subscription-tests-verbose-errors.patchDownload+6-6
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andrew Dunstan (#1)
Re: Subscription tests vs log_error_verbosity

Andrew Dunstan <andrew@dunslane.net> writes:

I have just got to the bottom of why the new subscription tests
027_nosuperuser.pl and 029_on_error.pl have been failing for me - it's
because my test setup has log_error_verbosity set to 'verbose'. Either
we should force log_error_verbosity to 'default' for these tests, or we
should make the regexes we're testing for more forgiving as in the attached.

+1 for the second answer. I don't like forcing parameter settings
that we don't absolutely have to --- it reduces our test coverage.
(Admittedly, changing log_error_verbosity in particular is probably
not giving up much coverage, but as a general principle it's bad.)

regards, tom lane

#3Andrew Dunstan
andrew@dunslane.net
In reply to: Tom Lane (#2)
Re: Subscription tests vs log_error_verbosity

On 2022-06-11 Sa 14:52, Tom Lane wrote:

Andrew Dunstan <andrew@dunslane.net> writes:

I have just got to the bottom of why the new subscription tests
027_nosuperuser.pl and 029_on_error.pl have been failing for me - it's
because my test setup has log_error_verbosity set to 'verbose'. Either
we should force log_error_verbosity to 'default' for these tests, or we
should make the regexes we're testing for more forgiving as in the attached.

+1 for the second answer. I don't like forcing parameter settings
that we don't absolutely have to --- it reduces our test coverage.
(Admittedly, changing log_error_verbosity in particular is probably
not giving up much coverage, but as a general principle it's bad.)

Yeah, Done that way.

cheers

andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com