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

Add test for errors.Is() #104

Closed
wants to merge 5 commits into from
Closed

Add test for errors.Is() #104

wants to merge 5 commits into from

Conversation

vtopc
Copy link
Contributor

@vtopc vtopc commented Apr 14, 2022

# go test -p 1 ./errors/... -race -timeout 1m --count=1

--- FAIL: TestIs (0.00s)
    --- FAIL: TestIs/holster_wrap (0.00s)
        go113_test.go:35:
            	Error Trace:	go113_test.go:35
            	Error:      	Should be true
            	Test:       	TestIs/holster_wrap
        go113_test.go:36:
            	Error Trace:	go113_test.go:36
            	Error:      	Target error should be in err chain:
            	            	expected: "wrapped"
            	            	in chain: "some reason: wrapped"
            	Test:       	TestIs/holster_wrap
FAIL
FAIL	github.com/mailgun/holster/v4/errors	5.011s

@vtopc vtopc marked this pull request as ready for review April 14, 2022 12:50
@vtopc vtopc closed this Apr 14, 2022
@vtopc vtopc deleted the test-errors.Is branch April 15, 2022 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant