Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Bamieh committed Feb 1, 2022
1 parent 1ea03db commit 64f132e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions x-pack/test/api_integration/apis/telemetry/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,20 +185,16 @@ export default function ({ getService }: FtrProviderContext) {
const archive = 'x-pack/test/functional/es_archives/monitoring/basic_6.3.x';
const fromTimestamp = '2018-07-23T22:54:59.087Z';
const toTimestamp = '2018-07-23T22:55:05.933Z';
let cacheLastUpdated: string[] = [];

before(async () => {
await esArchiver.load(archive);
await updateMonitoringDates(esSupertest, fromTimestamp, toTimestamp, timestamp);

// hit the endpoint to cache results
const { body }: { body: UnencryptedTelemetryPayload } = await supertest
await supertest
.post('/api/telemetry/v2/clusters/_stats')
.set('kbn-xsrf', 'xxx')
.send({ unencrypted: true, refreshCache: true })
.expect(200);

cacheLastUpdated = getCacheDetails(body).map(({ updatedAt }) => updatedAt);
});
after(() => esArchiver.unload(archive));
});
Expand Down

0 comments on commit 64f132e

Please sign in to comment.