Skip to content

Commit

Permalink
Merge branch 'master' into rmuller/normalize-readme-headings
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Dec 2, 2020
2 parents 433533f + 0b0abe4 commit ad590f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/aws-cdk/test/integ/cli/cdk-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ export class TestFixture {
// Bootstrap stacks have buckets that need to be cleaned
const bucketNames = stacksToDelete.map(stack => outputFromStack('BucketName', stack)).filter(defined);
await Promise.all(bucketNames.map(b => this.aws.emptyBucket(b)));
// The bootstrap bucket has a removal policy of RETAIN by default, so add it to the buckets to be cleaned up.
this.bucketsToDelete.push(...bucketNames);

// Bootstrap stacks have ECR repositories with images which should be deleted
const imageRepositoryNames = stacksToDelete.map(stack => outputFromStack('ImageRepositoryName', stack)).filter(defined);
Expand Down Expand Up @@ -405,4 +407,4 @@ export function rimraf(fsPath: string) {
export function randomString() {
// Crazy
return Math.random().toString(36).replace(/[^a-z0-9]+/g, '');
}
}

0 comments on commit ad590f5

Please sign in to comment.