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

[Logs Explorer] Fix flaky test - Number of installed integrations do not match #188723

Closed
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -188,6 +188,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
);
cleanupIntegrationsSetup =
await PageObjects.observabilityLogsExplorer.setupInitialIntegrations();

// Ensure that number of installed packages equals the initial packages
await retry.try(async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

This change adds a new assertion without modifying the one that makes the test flaky. How does this resolve the test flakiness?

const installedPackagesResponse =
await PageObjects.observabilityLogsExplorer.getInstalledPackages();
expect(installedPackagesResponse.body.items.length).to.eql(initialPackagesTexts.length);
});
});

after(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
);
cleanupIntegrationsSetup =
await PageObjects.observabilityLogsExplorer.setupInitialIntegrations();

// Ensure that number of installed packages equals the initial packages
await retry.try(async () => {
const installedPackagesResponse =
await PageObjects.observabilityLogsExplorer.getInstalledPackages();
expect(installedPackagesResponse.body.items.length).to.eql(initialPackagesTexts.length);
});
});

after(async () => {
Expand Down
Loading