Skip to content

Commit

Permalink
set suite.pending to disable the suite, rather than calling describe.…
Browse files Browse the repository at this point in the history
…skip
  • Loading branch information
spalger committed Jun 18, 2020
1 parent a1494fc commit 4426ead
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions x-pack/test/epm_api_integration/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) {
const dockerServers = getService('dockerServers');
const log = getService('log');

let maybeSkipped: typeof global.describe | typeof global.describe.skip = describe;

if (!dockerServers.isEnabled('registry')) {
log.warning('skipping EPM Endpoints tests because registry docker server is disabled');
maybeSkipped = describe.skip.bind(describe);
return;
}

maybeSkipped('EPM Endpoints', function () {
describe('EPM Endpoints', function () {
this.tags('ciGroup1');

if (!dockerServers.isEnabled('registry')) {
log.warning('skipping EPM Endpoints tests because registry docker server is disabled');
this.pending = true;
}

loadTestFile(require.resolve('./list'));
// loadTestFile(require.resolve('./file'));
// temporarily disabled, see https://github.com/elastic/kibana/issues/67943
Expand Down

0 comments on commit 4426ead

Please sign in to comment.