Peter Eisentraut wrote: > On 3/5/18 21:08, Michael Paquier wrote: > > +my $kdc_port = int(rand() * 16384) + 49152; > > That may not be worth worrying as that's an ephemeral port range but it > > can make the test a bit unstable... > > This is what we've been using in the other tests as well. It's clearly > not optimal, but making it more robust in a platform-agnostic way seems > tricky.
We have port-testing code in PostgresNode.pm::get_new_node; maybe that could be taking out of there into TestLib.pm? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services