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

remove all logrus calls. Add ctx #229

Merged
merged 1 commit into from
Nov 16, 2022
Merged

Conversation

pxp928
Copy link
Collaborator

@pxp928 pxp928 commented Nov 15, 2022

Remove all traces of Logrus that is not being used. Also, pass context to get logger from context.

Fixed unit test bug in key_test.go

Edit:

Fixes #232

Signed-off-by: pxp928 [email protected]

@@ -297,28 +310,28 @@ func TestDelete(t *testing.T) {
}

type mockKeyProvider struct {
collector map[string]Key
collector map[string]*Key
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm quick question on the change here? is this related to ctx change or just a drive by?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So as I was adding in the context, the unit test started to fail. Some keys were being overwritten before the test could complete. That was the reason for the changes. Added issue #232 to capture this.

Copy link
Contributor

Choose a reason for hiding this comment

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

awesome - tks!

Copy link
Contributor

@lumjjb lumjjb left a comment

Choose a reason for hiding this comment

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

LGTM

@kodiakhq kodiakhq bot merged commit 87d716d into guacsec:main Nov 16, 2022
@pxp928 pxp928 deleted the remove-logrus branch November 16, 2022 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix key_test unit test
3 participants