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

Fix errors.TestFormatGeneric #153

Open
vtopc opened this issue Dec 20, 2022 · 0 comments
Open

Fix errors.TestFormatGeneric #153

vtopc opened this issue Dec 20, 2022 · 0 comments

Comments

@vtopc
Copy link
Contributor

vtopc commented Dec 20, 2022

Fix test/code or deprecate and switch to built-in package errors.

=== RUN   TestFormatGeneric
    format_test.go:476: test 1: block 6: fmt.Sprintf("%+v", err):
        got:
        "github.com/mailgun/holster/v4/errors.testGenericRecursive\n\tgithub.com/mailgun/holster/v4/errors/format_test.go:504\ngithub.com/mailgun/holster/v4/errors.testGenericRecursive\n\tgithub.com/mailgun/holster/v4/errors/format_test.go:523\ngithub.com/mailgun/holster/v4/errors.testGenericRecursive\n\tgithub.com/mailgun/holster/v4/errors/format_test.go:523\ngithub.com/mailgun/holster/v4/errors.testGenericRecursive\n\tgithub.com/mailgun/holster/v4/errors/format_test.go:523\ngithub.com/mailgun/holster/v4/errors.TestFormatGeneric\n\tgithub.com/mailgun/holster/v4/errors/format_test.go:359\ntesting.tRunner\n\ttesting/testing.go:1446\nruntime.goexit\n\truntime/asm_amd64.s:1594"
        want:
        "github.com/mailgun/holster/v4/errors.(func·002|TestFormatGeneric.func2)\n\t.+/errors/format_test.go:333"
        all-got:
           new-error
           github.com/mailgun/holster/v4/errors.TestFormatGeneric
        	github.com/mailgun/holster/v4/errors/format_test.go:315
        testing.tRunner
        	testing/testing.go:1446
        runtime.goexit
        	runtime/asm_amd64.s:1594
           with-message
           with-message
           with-message
           github.com/mailgun/holster/v4/errors.testGenericRecursive
        	github.com/mailgun/holster/v4/errors/format_test.go:504
        github.com/mailgun/holster/v4/errors.testGenericRecursive
        	github.com/mailgun/holster/v4/errors/format_test.go:523
        github.com/mailgun/holster/v4/errors.testGenericRecursive
        	github.com/mailgun/holster/v4/errors/format_test.go:523
        github.com/mailgun/holster/v4/errors.testGenericRecursive
        	github.com/mailgun/holster/v4/errors/format_test.go:523
        github.com/mailgun/holster/v4/errors.TestFormatGeneric
        	github.com/mailgun/holster/v4/errors/format_test.go:359
        testing.tRunner
        	testing/testing.go:1446
        runtime.goexit
        	runtime/asm_amd64.s:1594
        all-want:
           new-error
           github.com/mailgun/holster/v4/errors.TestFormatGeneric
        	.+/errors/format_test.go:315
           with-message
           with-message
           with-message
           github.com/mailgun/holster/v4/errors.(func·002|TestFormatGeneric.func2)
        	.+/errors/format_test.go:333
--- FAIL: TestFormatGeneric (0.00s)

https://github.com/mailgun/holster/actions/runs/3740540806/jobs/6349033540

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

No branches or pull requests

1 participant