Skip to content

Commit

Permalink
chore(cli): fix test failing in CI (backport #19362) (#19364)
Browse files Browse the repository at this point in the history
This is an automatic backport of pull request #19362 done by [Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the [documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on `<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com/) you can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>
  • Loading branch information
mergify[bot] authored Mar 12, 2022
1 parent 922a9dc commit add429b
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 add429b

Please sign in to comment.