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

structmatcher: Use MatchStruct matcher in deprecated implementations #63

Merged

Conversation

dsharp-pivotal
Copy link
Contributor

We're trying to upgrade to ginkgo/v2, but structmatcher imports ginkgo v1. We can avoid the issue by not importing ginkgo at all. In this case, structmatcher only called Fail() in the deprecated ExpectXxx() functions. These can be replaced with using the MatchStruct() GomegaMatcher.

More info: onsi/ginkgo#875

This also removes the dependency on ginkgo, which will improve
compatibility with ginkgo v2.

Authored-by: David Sharp <dsharp@vmware.com>
@dsharp-pivotal
Copy link
Contributor Author

@jimmyyih If this looks good, can you merge it? I don't have write access to this repository (anymore?).

@jimmyyih jimmyyih merged commit b48b881 into greenplum-db:master Apr 25, 2022
@dsharp-pivotal dsharp-pivotal deleted the pr/structmatcher-no-ginkgo branch April 26, 2022 00:06
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

2 participants