oauth: Apply bgconn timeout per query in 001_server

The background psql session in oauth_validator/001_server lives
for most of the test but its timer was never restarted.  On slow
or loaded buildfarm animals the tests can exceed timeout_default
and the next query fails with "IPC::Run: timeout on timer #1".
Fix by restarting the timer per query.  Backpatch to v18 where
the test was introduced.

Author: Zsolt Parragi <[email protected]>
Reported-by: Alexander Lakhin <[email protected]>
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2e0fe6d5ace1ae0307cc74fc8db6b94914003d6d

Modified Files
--------------
src/test/modules/oauth_validator/t/001_server.pl | 1 +
1 file changed, 1 insertion(+)

Reply via email to