Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] [Dataset quality] fixing flaky test for dataset details summary size (#194683) #194927

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const degradedDatasetName = datasetNames[2];
const degradedDataStreamName = `logs-${degradedDatasetName}-${defaultNamespace}`;

describe('Flyout', function () {
describe('Dataset quality details', function () {
before(async () => {
// Install Apache Integration and ingest logs for it
await PageObjects.observabilityLogsExplorer.installPackage(apachePkg);
Expand Down Expand Up @@ -178,7 +178,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
expect(parseInt(degradedDocs, 10)).to.be(1);
expect(parseInt(services, 10)).to.be(3);
expect(parseInt(hosts, 10)).to.be(52);
expect(parseInt(size, 10)).to.be.greaterThan(0);
// metering stats API is cached for 30seconds, waiting for the exact value is not optimal in this case
// rather we can just check if any value is present
expect(size).to.be.ok();
});
});

Expand Down