Skip to content

Commit

Permalink
Fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba committed Sep 20, 2021
1 parent 92e5d6a commit e945488
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ describe('ES deprecations table', () => {
const reindexDeprecation = esDeprecationsMockResponse.deprecations[3];

// Since upgradeStatusMockResponse includes ML and reindex actions (which require fetching status), there will be 3 requests made
expect(server.requests.length).toBe(totalRequests + 3);
expect(server.requests[server.requests.length - 3].url).toBe(
expect(server.requests.length).toBe(totalRequests + 4);
expect(server.requests[server.requests.length - 4].url).toBe(
`${API_BASE_PATH}/es_deprecations`
);
expect(server.requests[server.requests.length - 2].url).toBe(
expect(server.requests[server.requests.length - 3].url).toBe(
`${API_BASE_PATH}/ml_snapshots/${(mlDeprecation.correctiveAction as MlAction).jobId}/${
(mlDeprecation.correctiveAction as MlAction).snapshotId
}`
);
expect(server.requests[server.requests.length - 1].url).toBe(
expect(server.requests[server.requests.length - 2].url).toBe(
`${API_BASE_PATH}/reindex/${reindexDeprecation.index}`
);
});
Expand Down

0 comments on commit e945488

Please sign in to comment.