Skip to content

Commit

Permalink
chore(cli-integ): migrate tests can fail because they don't bootstrap (
Browse files Browse the repository at this point in the history
…#32714)

CDK Migrate tests rely on other tests having bootstrapped their target regions already. That fails if they run first.

Add bootstrapping commands to these tests as well.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
rix0rrr authored Jan 2, 2025
1 parent 3170e1c commit 364ce86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@aws-cdk-testing/cli-integ/lib/with-cdk-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ export function withCdkMigrateApp<A extends TestContext>(language: string, block
context.randomString,
);

await ensureBootstrapped(fixture);

await fixture.cdkMigrate(language, stackName);

const testFixture = new TestFixture(
Expand Down

0 comments on commit 364ce86

Please sign in to comment.