Skip to content

Commit

Permalink
Improve skip decision logic
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Dec 17, 2024
1 parent 9431eb6 commit 561f8b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x-pack/test/api_integration/apis/upgrade_assistant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 561f8b6

Please sign in to comment.