Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: TestBlockingTags #3627

Merged
merged 1 commit into from Aug 15, 2022
Merged

refactor: TestBlockingTags #3627

merged 1 commit into from Aug 15, 2022

Conversation

Abirdcfly
Copy link
Contributor

@Abirdcfly Abirdcfly commented Aug 10, 2022

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets
License Apache 2.0

What's in this PR?

refactor the TestBlockingTags

Why?

Initially, this test was found to be faulty because the subsequent code was unreachable because of t.FailNow() in internal/secret/restricted/store_test.go line 55, and during the modification process, it was found that the test should be refactored directly.

Checklist

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
@CLAassistant
Copy link

CLAassistant commented Aug 10, 2022

CLA assistant check
All committers have signed the CLA.

}

err = store.Delete(orgID, secretID)
if err == nil {
t.Error("readonly secret deleted..")
t.FailNow()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Initially, this test was found to be faulty because the subsequent code was unreachable because of t.FailNow() in line 55, and during the modification process, it was found that the test should be refactored directly

Copy link
Member

@pregnor pregnor left a comment

Choose a reason for hiding this comment

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

LGTM

@akijakya akijakya merged commit 96c12e0 into banzaicloud:master Aug 15, 2022
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.

None yet

4 participants