Skip to content

Commit

Permalink
Remove second test pending outcome of elastic#101052.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Jun 1, 2021
1 parent 16f732f commit 6e3675f
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,27 +188,4 @@ describe('migration v2', () => {
expect(doc.migrationVersion.foo).toBe('7.14.0');
});
});

it('migrates saved objects normally when multiple Kibana instances are running with different plugins', async () => {
const setupContracts = await Promise.all([rootA.setup(), rootB.setup(), rootC.setup()]);

// Only register migration from one instance to simulate scenario
// where different plugins are enabled on different Kibana instances.
setupContracts[0].savedObjects.registerType(fooType);

// TODO: Fails if rootA.start promise isn't resolved first.
// Make sure this isn't an issue with the algorithm.
await rootA.start();
await Promise.all([rootB.start(), rootC.start()]);

const esClient = esServer.es.getClient();
const migratedDocs = await fetchDocs(esClient, migratedIndex);

expect(migratedDocs.length).toBe(5000);
migratedDocs.forEach((doc, i) => {
expect(doc.id).toBe(`foo:${i}`);
expect(doc.foo.status).toBe(`migrated_${i}`);
expect(doc.migrationVersion.foo).toBe('7.14.0');
});
});
});

0 comments on commit 6e3675f

Please sign in to comment.