mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
force some failures to verify the fix
This commit is contained in:
parent
cc91eda5f9
commit
cf2a58e139
3 changed files with 5 additions and 19 deletions
|
@ -29,10 +29,7 @@ describe('savedObjectsClient/decorateEsError', () => {
|
|||
});
|
||||
|
||||
it('makes es.ConnectionFault a SavedObjectsClient/EsUnavailable error', () => {
|
||||
const error = new esErrors.ConnectionFault();
|
||||
expect(SavedObjectsErrorHelpers.isEsUnavailableError(error)).toBe(false);
|
||||
expect(decorateEsError(error)).toBe(error);
|
||||
expect(SavedObjectsErrorHelpers.isEsUnavailableError(error)).toBe(true);
|
||||
throw new Error('force failure');
|
||||
});
|
||||
|
||||
it('makes es.ServiceUnavailable a SavedObjectsClient/EsUnavailable error', () => {
|
||||
|
|
|
@ -25,11 +25,9 @@ export default function ({ getService }) {
|
|||
before(() => esArchiver.load('elasticsearch'));
|
||||
after(() => esArchiver.unload('elasticsearch'));
|
||||
|
||||
it('allows search to specific index', async () => (
|
||||
await supertest
|
||||
.post('/elasticsearch/elasticsearch/_search')
|
||||
.expect(200)
|
||||
));
|
||||
it('allows search to specific index', async () => {
|
||||
throw new Error('force failure');
|
||||
});
|
||||
|
||||
it('allows msearch', async () => (
|
||||
await supertest
|
||||
|
|
|
@ -109,16 +109,7 @@ export default function ({ getService }) {
|
|||
});
|
||||
|
||||
it('should remove non-recurring tasks after they complete', async () => {
|
||||
await scheduleTask({
|
||||
taskType: 'sampleTask',
|
||||
params: { },
|
||||
});
|
||||
|
||||
await retry.try(async () => {
|
||||
const history = await historyDocs();
|
||||
expect(history.length).to.eql(1);
|
||||
expect((await currentTasks()).docs).to.eql([]);
|
||||
});
|
||||
throw new Error('force failure');
|
||||
});
|
||||
|
||||
it('should use a given ID as the task document ID', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue