Fix some failures with connection tests on Windows hosts
authorMichael Paquier <michael@paquier.xyz>
Wed, 7 Apr 2021 21:55:00 +0000 (06:55 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 7 Apr 2021 21:55:00 +0000 (06:55 +0900)
commitc7578fa64019f27edc31261ea49066a4b2569a6c
tree50f754ee4c3c5983d68cc9ef4450e4f9acbe69a7
parente717a9a18b2e34c9c40e5259ad4d31cd7e420750
Fix some failures with connection tests on Windows hosts

The truncation of the log file, that this set of tests relies on to make
sure that a connection attempt matches with its expected backend log
pattern, fails, as reported by buildfarm member fairywren.  Instead of a
truncation, do a rotation of the log file and restart the node.  This
will ensure that the connection attempt data is unique for each test.

Discussion: https://postgr.es/m/YG05nCI8x8B+Ad3G@paquier.xyz
src/test/perl/PostgresNode.pm