Skip to content

Commit

Permalink
fix ecs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Ben-Israel committed Apr 6, 2020
1 parent 814a15b commit e792923
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-ecs/test/test.container-definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,8 @@ export = {

'can add secret environment variables to the container definition'(test: Test) {
// GIVEN
const stack = new cdk.Stack();
const app = new cdk.App();
const stack = new cdk.Stack(app, 'stack');
const taskDefinition = new ecs.Ec2TaskDefinition(stack, 'TaskDef');

const secret = new secretsmanager.Secret(stack, 'Secret');
Expand Down
3 changes: 2 additions & 1 deletion packages/@aws-cdk/aws-ecs/test/test.firelens-log-driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const image = ecs.ContainerImage.fromRegistry('test-image');

export = {
'setUp'(cb: () => void) {
stack = new cdk.Stack();
const app = new cdk.App();
stack = new cdk.Stack(app, 'stack');
td = new ecs.Ec2TaskDefinition(stack, 'TaskDefinition');

cb();
Expand Down

0 comments on commit e792923

Please sign in to comment.