fix telemetry test (#167471)

Closes https://github.com/elastic/kibana/issues/156245

One test agent went from offline to inactive due to inactivity timeout
and broke the tests, instead changed the `last_checkin` to now-6m so it
stays in offline state.
This commit is contained in:
Julia Bardi 2023-09-28 12:10:39 +02:00 committed by GitHub
parent 046718c18f
commit f8dae67d8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,8 +20,7 @@ import { waitForFleetSetup } from './helpers';
const logFilePath = path.join(__dirname, 'logs.log');
// Failing: See https://github.com/elastic/kibana/issues/156245
describe.skip('fleet usage telemetry', () => {
describe('fleet usage telemetry', () => {
let core: any;
let esServer: TestElasticsearchUtils;
let kbnServer: TestKibanaUtils;
@ -218,7 +217,7 @@ describe.skip('fleet usage telemetry', () => {
version: '8.6.0',
},
last_checkin_status: 'online',
last_checkin: '2023-09-13T12:26:24Z',
last_checkin: new Date(Date.now() - 1000 * 60 * 6).toISOString(),
active: true,
policy_id: 'policy2',
},