Skip to content

Commit

Permalink
Deletes unused declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaHeiligers committed May 28, 2021
1 parent 4667674 commit 5d4c689
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,6 @@ describe('actions', () => {
});
});

describe('cleanupFatal', () => {
// to properly spy on mocks and create the mocks for actions being called within other actions, we either need to:
// refactor a split out all the actions into indivudual files (https://github.com/elastic/kibana/issues/99479)
// export an object containing all the actions
it.todo('calls closePit');
it.todo("doesn't call closePit if there isn't one to close");
});

describe('reindex', () => {
it('calls catchRetryableEsClientErrors when the promise rejects', async () => {
const task = Actions.reindex(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import { cleanupMock } from './migrations_state_machine_cleanup.mocks';
import { migrationStateActionMachine } from './migrations_state_action_machine';
import { loggingSystemMock, elasticsearchServiceMock } from '../../mocks';
import * as Either from 'fp-ts/lib/Either';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,12 @@ export async function migrationStateActionMachine({
// indicate which messages come from which index upgrade.
const logMessagePrefix = `[${initialState.indexPrefix}] `;
let prevTimestamp = startTime;
let lastState: State | undefined;
try {
// we either return from here or an error is thrown
const finalState = await stateActionMachine<State>(
initialState,
(state) => next(state),
(state, res) => {
lastState = state;

executionLog.push({
type: 'response',
res,
Expand Down

0 comments on commit 5d4c689

Please sign in to comment.