Skip to content

Commit

Permalink
let's call it a day
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Oct 21, 2021
1 parent f08a6e6 commit f5b9335
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function (providerContext: FtrProviderContext) {
});

// @ts-expect-error TotalHit
return res.body.hits.total.value !== 0;
return res.hits.total.value !== 0;
}

// Test all the side effect that should occurs when we create|update an agent policy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function ({ getService }: FtrProviderContext) {
async function getNumberOfSessionDocuments() {
return (
// @ts-expect-error doesn't handle total as number
(await es.search({ index: '.kibana_security_session*' })).body.hits.total.value as number
(await es.search({ index: '.kibana_security_session*' })).hits.total.value as number
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default function ({ getService }) {
await assertQueueState(undefined, 0);

// Check that the closed index is still closed after reindexing
const { body: resolvedIndices } = await es.indices.resolveIndex({
const resolvedIndices = await es.indices.resolveIndex({
name: nameOfIndexThatShouldBeClosed,
});

Expand Down

0 comments on commit f5b9335

Please sign in to comment.