Skip to content

Commit

Permalink
fix: remove suppress deprecation warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
Billy Bromell committed Aug 13, 2024
1 parent 90ebdd6 commit 07d4e30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions packages/aws-cdk/lib/api/aws-auth/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ import { cached } from './cached';
import { Account } from './sdk-provider';
import { traceMethods } from '../../util/tracing';

/* eslint-disable @typescript-eslint/no-require-imports */
require('aws-sdk/lib/maintenance_mode_message').suppress = true;
/* eslint-enable @typescript-eslint/no-require-imports */

export interface ISDK {
/**
* The region this SDK has been instantiated for
Expand Down
4 changes: 2 additions & 2 deletions packages/aws-cdk/test/api/logs/logs-monitor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ test('process events', async () => {

// THEN
const expectedLocaleTimeString = eventDate.toLocaleTimeString();
expect(stderrMock).toHaveBeenCalledTimes(1);
expect(stderrMock.mock.calls[0][0]).toContain(
expect(stderrMock).toHaveBeenCalledTimes(2);
expect(stderrMock.mock.calls[1][0]).toContain(
`[${blue('loggroup')}] ${yellow(expectedLocaleTimeString)} message`,
);
});
Expand Down

0 comments on commit 07d4e30

Please sign in to comment.