Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HBobertz committed Jan 13, 2025
1 parent f342b96 commit 0f2fb63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/aws-cdk/lib/logging.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as util from 'util';
import { IoMessageLevel, IoMessage, CliIoHost, IoMessageSpecificCode, IoMessageCode, IoMessageCodeCategory, IoCodeLevel } from './toolkit/cli-io-host';
import * as chalk from 'chalk';
import { IoMessageLevel, IoMessage, CliIoHost, IoMessageSpecificCode, IoMessageCode, IoMessageCodeCategory, IoCodeLevel } from './toolkit/cli-io-host';

// Corking mechanism
let CORK_COUNTER = 0;
Expand Down Expand Up @@ -48,7 +48,7 @@ export async function withCorkedLogging<T>(block: () => Promise<T>): Promise<T>
if (CORK_COUNTER === 0) {
// Process each buffered message through notify
for (const ioMessage of logBuffer) {
await CliIoHost.getIoHost().notify(ioMessage);
void CliIoHost.getIoHost().notify(ioMessage);
}
logBuffer.splice(0);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk/test/toolkit/cli-io-host.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CliIoHost, IoMessage } from '../../lib/toolkit/cli-io-host';
import * as chalk from 'chalk';
import { CliIoHost, IoMessage } from '../../lib/toolkit/cli-io-host';

describe('CliIoHost', () => {
let mockStdout: jest.Mock;
Expand Down

0 comments on commit 0f2fb63

Please sign in to comment.