Skip to content

Instantly share code, notes, and snippets.

@gavv
Created March 25, 2021 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gavv/e9aa492ed0ca50e8073251099e9f9f7c to your computer and use it in GitHub Desktop.
Save gavv/e9aa492ed0ca50e8073251099e9f9f7c to your computer and use it in GitHub Desktop.
=== RUN TestPerRequestWithTimeoutAndWithRetries
panic: test timed out after 10m0s
1: running [Created by time.goFunc @ sleep.go:180]
testing testing.go:1701 (*M).startAlarm.func1()
1: chan receive
testing testing.go:1240 (*T).Run(*T(#968), string(#13, len=39), func(#14))
testing testing.go:1512 runTests.func1(func(#968))
testing testing.go:1194 tRunner(*T(#968), func(#165))
testing testing.go:1510 runTests(func(#124), []InternalTest(0x108 len=264 cap=13839348556227511523), Time(#31), #123)
testing testing.go:1418 (*M).Run(*M(#152), 0x0)
main :569 main()
1: select [Created by testing.(*T).Run @ testing.go:1239]
http transport.go:2610 (*persistConn).roundTrip(*persistConn(#972), *transportRequest(#1014), 0x0, 0x0, 0x0)
http transport.go:592 (*Transport).roundTrip(*Transport(#23), *Request(#661), 0x0, #1033, 0x30)
http roundtrip.go:17 (*Transport).RoundTrip(*Transport(#23), *Request(#661), #23, 0x0, 0x0)
http client.go:251 send(*Request(#661), RoundTripper(#15), Time(0x0), 0x0, 0x0, 0x0, #181, #743)
http client.go:175 (*Client).send(*Client(#1034), *Request(#661), Time(0x0), 0x0, #181, 0x0, 0x1, #26)
http client.go:717 (*Client).do(*Client(#1034), *Request(#661), 0x0, 0x0, 0x0)
http client.go:585 (*Client).Do(*Client(#1034), *Request(#661), #22, #1064, #1068)
v2 request.go:1275 (*Request).sendRequest.func1(*Request(#744), 0x18, #25)
v2 request.go:1345 (*Request).retryRequest.func1(*Request(#596), func(#744), #745, #746)
v2 request.go:1346 (*Request).retryRequest(*Request(#596), func(#747), #62, #16, #593)
v2 request.go:1274 (*Request).sendRequest(*Request(#596), #338, 0x0)
v2 request.go:1193 (*Request).roundTrip(*Request(#596), #847)
v2 request.go:1154 (*Request).Expect(*Request(#596), 0x3)
v2 e2e_context_test.go:311 TestPerRequestWithTimeoutAndWithRetries(*T(#748))
testing testing.go:1194 tRunner(*T(#748), func(#14))
1: chan receive [Created by http.(*Server).Serve @ server.go:3013]
v2 e2e_context_test.go:50 (*waitHandler).WaitForPerRequestTimeout(*waitHandler(#845), ResponseWriter(#18), *Request(#1060))
http server.go:2069 HandlerFunc.ServeHTTP(ResponseWriter(#789), *Request(#960), #1060)
http server.go:2448 (*ServeMux).ServeHTTP(*ServeMux(#844), ResponseWriter(#18), *Request(#1060))
v2 e2e_context_test.go:25 (*waitHandler).ServeHTTP(*waitHandler(#845), ResponseWriter(#18), *Request(#1060))
http server.go:2887 serverHandler.ServeHTTP(ResponseWriter(#354), *Request(#960), #1060)
http server.go:1952 (*conn).serve(*conn(#1056), Context(#19))
89: chan receive [0~9 minutes] [Created by http.(*Server).Serve @ server.go:3013]
v2 e2e_websocket_test.go:294 TestE2EWebsocketTimeouts.func3.1()
v2 e2e_websocket_test.go:31 createWebsocketHandler.func1(#18, *, *)
http server.go:2069 HandlerFunc.ServeHTTP(*, #18, *, *)
http server.go:2448 (*ServeMux).ServeHTTP(*, #18, *, *)
http server.go:2887 serverHandler.ServeHTTP(*, #18, *, *)
http server.go:1952 (*conn).serve(*, #19, *)
89: sleep [Created by fasthttp.(*FS).initRequestHandler @ fs.go:363]
time time.go:193 Sleep(#29)
fasthttp fs.go:366 (*FS).initRequestHandler.func1(#30, *)
1: sleep [Created by fasthttp.updateServerDate @ header.go:1443]
time time.go:193 Sleep(1000000000)
fasthttp header.go:1445 updateServerDate.func1()
1: IO wait [Created by http.(*Transport).dialConn @ transport.go:1743]
poll netpoll.go:222 runtime_pollWait(*pollDesc(#1065), 114, #21)
poll fd_poll_runtime.go:87 (*pollDesc).wait(*pollDesc(#791), 114, bool(0x1000), 0xffffffffffffffff)
poll fd_poll_runtime.go:92 (*pollDesc).waitRead(...)
poll fd_unix.go:166 (*FD).Read(*FD(#790), []byte(#794 len=4096 cap=4096), 0x0, 0x0, 0x0)
net fd_posix.go:55 (*netFD).Read(*netFD(#790), []byte(#794 len=4096 cap=4096), #2, #592, #9)
net net.go:183 (*conn).Read(*conn(#44), []byte(#794 len=4096 cap=4096), #1058, #1, #11)
http transport.go:1922 (*persistConn).Read(*persistConn(#972), []byte(#794 len=4096 cap=4096), #1059, 0x16, 0xa)
bufio bufio.go:101 (*Reader).fill(*Reader(#1038))
bufio bufio.go:139 (*Reader).Peek(*Reader(#1038), 1, #1003, #375, #5, #20, 0xe33)
http transport.go:2083 (*persistConn).readLoop(*persistConn(#972))
1: IO wait [Created by httptest.(*Server).goServe @ server.go:306]
poll netpoll.go:222 runtime_pollWait(*pollDesc(#1066), 114, 0x72)
poll fd_poll_runtime.go:87 (*pollDesc).wait(*pollDesc(#59), 114, bool(0x0), #12)
poll fd_poll_runtime.go:92 (*pollDesc).waitRead(...)
poll fd_unix.go:401 (*FD).Accept(*FD(#58), 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
net fd_unix.go:172 (*netFD).accept(*netFD(#58), #4, #798, 0x8)
net tcpsock_posix.go:139 (*TCPListener).accept(*TCPListener(#321), #964, 0x0, #27)
net tcpsock.go:261 (*TCPListener).Accept(*TCPListener(#321), #992, #3, #991, #6)
http server.go:2981 (*Server).Serve(*Server(#354), Listener(#17), 0x0, 0x0)
httptest server.go:308 (*Server).goServe.func1(*Server(#964))
1: IO wait [Created by http.(*connReader).startBackgroundRead @ server.go:688]
poll netpoll.go:222 runtime_pollWait(*pollDesc(#1067), 114, #21)
poll fd_poll_runtime.go:87 (*pollDesc).wait(*pollDesc(#61), 114, bool(0x0), 0xffffffffffffffff)
poll fd_poll_runtime.go:92 (*pollDesc).waitRead(...)
poll fd_unix.go:166 (*FD).Read(*FD(#60), []byte(#1036 len=1 cap=1), 0x0, 0x0, 0x0)
net fd_posix.go:55 (*netFD).Read(*netFD(#60), []byte(#1036 len=1 cap=1), 0x0, #10, #972)
net net.go:183 (*conn).Read(*conn(#88), []byte(#1036 len=1 cap=1), #1032, #7, #8)
http server.go:692 (*connReader).backgroundRead(*connReader(#1035))
267: select [0~9 minutes] [Created by http.(*Transport).dialConn @ transport.go:1743]
http transport.go:2203 (*persistConn).readLoop(*)
268: select [0~9 minutes] [Created by http.(*Transport).dialConn @ transport.go:1744]
http transport.go:2382 (*persistConn).writeLoop(*)
exit status 2
FAIL github.com/gavv/httpexpect/v2 600.178s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment