Skip to content

Commit

Permalink
Fixes Failing test: Jest Integration Tests.x-pack/plugins/task_manage…
Browse files Browse the repository at this point in the history
…r/server/integration_tests - unrecognized task types should be no workload aggregator errors when there are removed task types (elastic#196179)
  • Loading branch information
ymao1 authored Oct 14, 2024
1 parent a15940d commit d70583f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ describe('unrecognized task types', () => {
if (errorLogCalls) {
// should be no workload aggregator errors
for (const elog of errorLogCalls) {
expect(elog).not.toMatch(/^\[WorkloadAggregator\]: Error: Unsupported task type/i);
if (typeof elog === 'string') {
expect(elog).not.toMatch(/^\[WorkloadAggregator\]: Error: Unsupported task type/i);
}
}
}
});
Expand Down

0 comments on commit d70583f

Please sign in to comment.