Skip to content

Commit

Permalink
Only matching strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Oct 14, 2024
1 parent c901fec commit 0b46323
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 0b46323

Please sign in to comment.