Skip to content

Commit

Permalink
Add test for --wait default
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmoussa committed Feb 17, 2020
1 parent 1f1fdd0 commit 8d1053b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/@aws-cdk/aws-eks/test/test.helm-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ export = {
// THEN
expect(stack).to(haveResource(eks.HelmChart.RESOURCE_TYPE, { Wait: true }));
test.done();
},
'should default to not waiting before marking release as successful'(test: Test) {
// GIVEN
const { stack, cluster } = testFixtureCluster();

// WHEN
new eks.HelmChart(stack, 'MyWaitingChart', { cluster, chart: 'chart' });

// THEN
expect(stack).to(haveResource(eks.HelmChart.RESOURCE_TYPE, { Wait: false}));
test.done();
}
}
};

0 comments on commit 8d1053b

Please sign in to comment.