From 78f6d9ae8a61603c0d69efb485b27b9624fe25e9 Mon Sep 17 00:00:00 2001 From: Spencer Date: Wed, 30 Dec 2020 14:31:24 -0700 Subject: [PATCH] [7.x] [test/functional_cors] 9000 is sometimes in use, make getPort random (#87050) (#87066) Co-authored-by: spalger Co-authored-by: spalger --- x-pack/test/functional_cors/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/functional_cors/config.ts b/x-pack/test/functional_cors/config.ts index b792aa2d183b6..737cccc5ae33b 100644 --- a/x-pack/test/functional_cors/config.ts +++ b/x-pack/test/functional_cors/config.ts @@ -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,