Skip to content

Commit

Permalink
chore: exclude some logs-monitor code from coverage (#32107)
Browse files Browse the repository at this point in the history
Code that *may* or *may not* run should be excluded from coverage.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
iliapolo authored Nov 13, 2024
1 parent b763d86 commit 61a421c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/aws-cdk/lib/api/logs/logs-monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ export class CloudWatchLogEventMonitor {

private async tick(): Promise<void> {
if (!this.active) {
// excluding from codecoverage because this
// doesn't always run (depends on timing)
/* istanbul ignore next */
return;
}
try {
Expand Down

0 comments on commit 61a421c

Please sign in to comment.