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

Buffer tests not working on master #62

Open
lunemec opened this issue Jan 19, 2017 · 0 comments
Open

Buffer tests not working on master #62

lunemec opened this issue Jan 19, 2017 · 0 comments

Comments

@lunemec
Copy link

lunemec commented Jan 19, 2017

Since there is no CI on this project, I figured this out only when I cloned the project (to hack on it) and ran the tests.

EDIT: I noticed there is Travis CI but only for build, not for the tests.
EDIT2: It seems go1.5 works OK, but 1.6 and 1.7 do not - see #58

$ go test
INFO[0000] Round trip: http://127.0.0.1:56109, code: 200, duration: 628.619µs

----------------------------------------------------------------------
FAIL: buffer_test.go:94: BFSuite.TestChunkedEncodingLimitReached

buffer_test.go:122:
    c.Assert(status, Equals, "HTTP/1.0 413 Request Entity Too Large\r\n")
... obtained string = "HTTP/1.0 200 OK\r\n"
... expected string = "HTTP/1.0 413 Request Entity Too Large\r\n"

INFO[0000] Round trip: http://127.0.0.1:56113, code: 200, duration: 445.303µs

----------------------------------------------------------------------
FAIL: buffer_test.go:55: BFSuite.TestChunkedEncodingSuccess

buffer_test.go:89:
    c.Assert(reqBody, Equals, "testtest1test2")
... obtained string = ""
... expected string = "testtest1test2"

INFO[0000] Round trip: http://127.0.0.1:56117, code: 200, duration: 316.075µs
ERRO[0000] Error copying upstream response Body: total size of 33 exceeded allowed 4
ERRO[0000] failed to read response, err no data ready
INFO[0000] Round trip: http://127.0.0.1:56121, code: 200, duration: 394.326µs
INFO[0000] Round trip: http://127.0.0.1:56125, code: 200, duration: 404.963µs
INFO[0000] Round trip: http://127.0.0.1:56129, code: 304, duration: 302.626µs
INFO[0000] Round trip: http://127.0.0.1:56133, code: 200, duration: 447.161µs tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:
INFO[0000] request body over limit: Maximum size &{4} was reached
INFO[0000] Round trip: http://127.0.0.1:56140, code: 200, duration: 392.388µs
ERRO[0000] Error copying upstream response Body: total size of 33 exceeded allowed 4
ERRO[0000] failed to read response, err no data ready
INFO[0000] Round trip: http://127.0.0.1:56144, code: 200, duration: 406.956µs
ERRO[0000] Error forwarding to http://localhost:64321, err: dial tcp [::1]:64321: getsockopt: connection refused
INFO[0000] retry Request(GET /) attempt 2
ERRO[0000] Error forwarding to http://localhost:64322, err: dial tcp [::1]:64322: getsockopt: connection refused
INFO[0000] retry Request(GET /) attempt 3
ERRO[0000] Error forwarding to http://localhost:64323, err: dial tcp [::1]:64323: getsockopt: connection refused
ERRO[0000] Error forwarding to http://localhost:64321, err: dial tcp [::1]:64321: getsockopt: connection refused
INFO[0000] retry Request(GET /) attempt 2
INFO[0000] Round trip: http://127.0.0.1:56157, code: 200, duration: 1.180046ms
INFO[0000] Round trip: http://127.0.0.1:56163, code: 200, duration: 853.58µs
OOPS: 11 passed, 2 FAILED
--- FAIL: TestBuffer (0.05s)
FAIL
exit status 1
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