diff --git a/x-pack/test/api_integration/apis/upgrade_assistant/index.ts b/x-pack/test/api_integration/apis/upgrade_assistant/index.ts index 61e2dbce21fee..1f56a4a9563ed 100644 --- a/x-pack/test/api_integration/apis/upgrade_assistant/index.ts +++ b/x-pack/test/api_integration/apis/upgrade_assistant/index.ts @@ -14,12 +14,11 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) { before( "Check version to avoid failures during forward-compatibility tests where these don't make sense", - async () => { + async function () { const { version: { number: esVersion }, } = await es.info(); - if (esVersion !== kibanaVersion) { - // @ts-expect-error for some reason TS thinks it's jest and not mocha: https://mochajs.org/#inclusive-tests + if (esVersion.replace('-SNAPSHOT', '') !== kibanaVersion.replace('-SNAPSHOT', '')) { this.skip(); } }