Skip to content

Commit

Permalink
[Security Solution] fix flaky endpoint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joeypoon committed Feb 9, 2023
1 parent 3b1ff55 commit 6e8c3b6
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 6e8c3b6

Please sign in to comment.