Fix some failures with connection tests on Windows hosts

Michael Paquier <michael@paquier.xyz>

Commit: c7578fa64019f27edc31261ea49066a4b2569a6c
Author: Michael Paquier <michael@paquier.xyz>
Date: 2021-04-07T21:55:00Z
Releases: 14.0
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

Files

PathChange+/−
src/test/perl/PostgresNode.pm modified +22 −2

Discussion

Cited messages not in the archive: YG05nCI8x8B+Ad3G@paquier.xyz