Skip to content

Conversation

@ppadyala1599
Copy link
Member

Issue #, if available:

Description of changes:

Testing (if applicable):

Documentation added/planned (if applicable):

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

// Comment out the below code when the add-on is available publicly on aws console

// fsxCSITest, err := addonEc2Test.NewFsxCSIDriverTest(ctx)
fsxCSITest, err := addonEc2Test.NewFsxCSIDriverTest(ctx)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks NewFsxCSIDriverTest called twice.

// DeferCleanup(func(ctx context.Context) {
// Expect(fsxCSITest.Delete(ctx)).To(Succeed(), "should cleanup FSx CSI driver successfully")
// })
DeferCleanup(func(ctx context.Context) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - ctx variable is looks reuse and can shadow the outer ctx.

Suggesting to use - DeferCleanup(func(cleanupCtx context.Context) in place of DeferCleanup(func(ctx context.Context)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants