Skip to content
New issue

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

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

Already on GitHub? # to your account

Avoid panicking in tests #204

Merged
merged 1 commit into from
May 17, 2022
Merged

Conversation

zeeke
Copy link
Member

@zeeke zeeke commented Apr 11, 2022

Using Gomega assertions makes test errors more readable in most cases.

Signed-off-by: Andrea Panattoni apanatto@redhat.com

Copy link
Collaborator

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

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

can you please change to something like Expect(err).ToNot(HaveOccurred())

@zeeke
Copy link
Member Author

zeeke commented Apr 14, 2022

Yep

@SchSeba
Copy link
Collaborator

SchSeba commented Apr 18, 2022

/lgtm

@SchSeba
Copy link
Collaborator

SchSeba commented Apr 18, 2022

@adrianchiris PTAL

@SchSeba
Copy link
Collaborator

SchSeba commented Apr 18, 2022

@zeeke can you please have a look on the CI status?

Using Gomega assertions makes test errors more readable.

Upgrade GolangCI to v.1.45 to avoid errors like:
"export data is newer version - update tool"

Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
@zeeke
Copy link
Member Author

zeeke commented Apr 19, 2022

Yes, It seems to be related to an incompatibility between GolangCI 1.29 and Go 1.18 as GolangCI actions v2 automatically checks out Go to the latest version.

I encountered the same problem in #205 and I think it's not related to the code changes themselves.

I fixed upgrading golangci to 1.49

Copy link
Contributor

@e0ne e0ne left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the cleaning this up

Copy link
Contributor

@adrianchiris adrianchiris left a comment

Choose a reason for hiding this comment

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

LGTM !

@adrianchiris adrianchiris merged commit d5784b1 into k8snetworkplumbingwg:master May 17, 2022
jingczhang pushed a commit to nokia/sriov-cni that referenced this pull request Jul 7, 2022
Using Gomega assertions makes test errors more readable.

Upgrade GolangCI to v.1.45 to avoid errors like:
"export data is newer version - update tool"

Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants