Skip to content

Commit e98047d

Browse files
authored
Merge branch 'main' into jingwy-globalAccelerator-fix-for-custom-resources
2 parents e8f7129 + 97e9ea0 commit e98047d

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

packages/aws-cdk-lib/aws-eks/test/cluster.test.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -350,20 +350,6 @@ describe('cluster', () => {
350350
expect(() => cluster.addCdk8sChart('chart', someConstruct)).toThrow(/Invalid cdk8s chart. Must contain a \'toJson\' method, but found undefined/);
351351
});
352352

353-
test('throws when a core construct is added as cdk8s chart', () => {
354-
const { stack } = testFixture();
355-
356-
const cluster = new eks.Cluster(stack, 'Cluster', {
357-
version: CLUSTER_VERSION,
358-
prune: false,
359-
});
360-
361-
// create a plain construct, not a cdk8s chart
362-
const someConstruct = new Construct(stack, 'SomeConstruct');
363-
364-
expect(() => cluster.addCdk8sChart('chart', someConstruct)).toThrow(/Invalid cdk8s chart. Must contain a \'toJson\' method, but found undefined/);
365-
});
366-
367353
test('cdk8s chart can be added to cluster', () => {
368354
const { stack } = testFixture();
369355

0 commit comments

Comments
 (0)