Skip to content

Commit

Permalink
chore(cli): fix test failing in CI (#19362)
Browse files Browse the repository at this point in the history
One of the changes in #19216 is causing 3 unit tests in the CI environment of the pipeline to fail
(for reasons not exactly clear).
This changes unblocks them.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*

(cherry picked from commit 4977ae5)
  • Loading branch information
skinny85 authored and mergify-bot committed Mar 12, 2022
1 parent 922a9dc commit 3a5d103
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/aws-cdk/test/cdk-toolkit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ describe('deploy', () => {

// WHEN
await cdkToolkit.deploy({
selector: { patterns: ['Test-Stack-A'] },
selector: { patterns: ['Test-Stack-A-Display-Name'] },
requireApproval: RequireApproval.Never,
hotswap: true,
});
Expand Down Expand Up @@ -444,7 +444,7 @@ describe('deploy', () => {
const toolkit = defaultToolkitSetup();

// WHEN
await toolkit.deploy({ selector: { patterns: ['Test-Stack-A'] } });
await toolkit.deploy({ selector: { patterns: ['Test-Stack-A-Display-Name'] } });
});

test('with stacks all stacks specified as wildcard', async () => {
Expand Down Expand Up @@ -689,7 +689,7 @@ describe('synth', () => {
const toolkit = defaultToolkitSetup();

// THEN
await toolkit.synth(['Test-Stack-A'], false, true);
await toolkit.synth(['Test-Stack-A-Display-Name'], false, true);
expect(mockData.mock.calls.length).toEqual(0);
});

Expand Down

0 comments on commit 3a5d103

Please sign in to comment.