Skip to content

Commit 61a421c

Browse files
authored
chore: exclude some logs-monitor code from coverage (#32107)
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*
1 parent b763d86 commit 61a421c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/aws-cdk/lib/api/logs/logs-monitor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ export class CloudWatchLogEventMonitor {
125125

126126
private async tick(): Promise<void> {
127127
if (!this.active) {
128+
// excluding from codecoverage because this
129+
// doesn't always run (depends on timing)
130+
/* istanbul ignore next */
128131
return;
129132
}
130133
try {

0 commit comments

Comments
 (0)