The randomly selected port by Artery could be the same as the randomly selected port the test generates. Fixes #25403