Skip to content

Commit

Permalink
[Security Solution] fix flaky endpoint tests (#150652)
Browse files Browse the repository at this point in the history
Fixes #72874
  • Loading branch information
joeypoon authored Feb 9, 2023
1 parent 13f5c4c commit d147593
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions x-pack/plugins/security_solution/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,13 @@ export class Plugin implements ISecuritySolutionPlugin {
this.telemetryReceiver
);

if (plugins.taskManager) {
this.checkMetadataTransformsTask?.start({
taskManager: plugins.taskManager,
});
}
plugins.fleet?.fleetSetupCompleted().then(() => {
if (plugins.taskManager) {
this.checkMetadataTransformsTask?.start({
taskManager: plugins.taskManager,
});
}
});

return {};
}
Expand Down

0 comments on commit d147593

Please sign in to comment.