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

TestResponderPreExpiredContext fails with go1.16 and up #102

Open
anthonyfok opened this issue Aug 10, 2022 · 0 comments
Open

TestResponderPreExpiredContext fails with go1.16 and up #102

anthonyfok opened this issue Aug 10, 2022 · 0 comments

Comments

@anthonyfok
Copy link

Starting with go1.16, TestResponderPreExpiredContext fails quite often, up to 80% of the time on my computer:

--- FAIL: TestResponderPreExpiredContext (0.00s)
    st.go:41: 
        responder_test.go:118: should be == 
         	have: (<nil>) <nil>
        	want: (context.deadlineExceededError) context deadline exceeded
    st.go:41: 
        responder_test.go:119: should be == 
         	have: (bool) false
        	want: (bool) true

With go1.15, TestResponderPreExpiredContext seemingly never fails.

Tested with gock.v1 v1.1.2 and the newer commit cd5aaaa on Debian sid.

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

No branches or pull requests

1 participant