[7.x] [test/functional_cors] 9000 is sometimes in use, make getPort random (#87050) (#87066)

Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
This commit is contained in:
Spencer 2020-12-30 14:31:24 -07:00 committed by GitHub
parent 2bce5d1490
commit 78f6d9ae8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
};
const { protocol, hostname } = kbnTestConfig.getUrlParts();
const pluginPort = await getPort({ port: 9000 });
const pluginPort = await getPort();
const originUrl = Url.format({
protocol,
hostname,