Created
June 22, 2017 11:27
-
-
Save shogo82148/25097134b34e9d5276225cc9a72eb37a to your computer and use it in GitHub Desktop.
https://github.com/mackee/kuiperbelt race-condition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== RUN TestConfig__Unmarshal | |
--- PASS: TestConfig__Unmarshal (0.00s) | |
=== RUN TestProxySendHandlerFunc__BulkSend | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c420130230 by goroutine 10: | |
github.com/mackee/kuiperbelt.TestProxySendHandlerFunc__BulkSend() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:61 +0x115a | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
Previous write at 0x00c420130230 by goroutine 19: | |
bytes.(*Buffer).grow() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:122 +0x450 | |
bytes.(*Buffer).Write() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:163 +0x16d | |
github.com/mackee/kuiperbelt.(*TestSession).Write() | |
<autogenerated>:1 +0x78 | |
github.com/mackee/kuiperbelt.(*Proxy).sendMessage() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:184 +0x7fc | |
Goroutine 10 (running) created at: | |
testing.(*T).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:800 +0x597 | |
testing.runTests.func1() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1053 +0xb2 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
testing.runTests() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1051 +0x50a | |
testing.(*M).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:932 +0x206 | |
main.main() | |
github.com/mackee/kuiperbelt/_test/_testmain.go:68 +0x1d3 | |
Goroutine 19 (finished) created at: | |
github.com/mackee/kuiperbelt.(*Proxy).SendHandlerFunc() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:132 +0x428 | |
github.com/mackee/kuiperbelt.(*Proxy).SendHandlerFunc-fm() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:48 +0x5f | |
net/http.HandlerFunc.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1914 +0x51 | |
net/http.serverHandler.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:2610 +0xbc | |
net/http.(*conn).serve() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1797 +0x83b | |
================== | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c420130258 by goroutine 10: | |
runtime.slicebytetostring() | |
/Users/shogo/sdk/go1.9beta1/src/runtime/string.go:72 +0x0 | |
github.com/mackee/kuiperbelt.TestProxySendHandlerFunc__BulkSend() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:61 +0x11ae | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
Previous write at 0x00c420130258 by goroutine 19: | |
runtime.slicecopy() | |
/Users/shogo/sdk/go1.9beta1/src/runtime/slice.go:160 +0x0 | |
bytes.(*Buffer).Write() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:165 +0x121 | |
github.com/mackee/kuiperbelt.(*TestSession).Write() | |
<autogenerated>:1 +0x78 | |
github.com/mackee/kuiperbelt.(*Proxy).sendMessage() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:184 +0x7fc | |
Goroutine 10 (running) created at: | |
testing.(*T).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:800 +0x597 | |
testing.runTests.func1() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1053 +0xb2 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
testing.runTests() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1051 +0x50a | |
testing.(*M).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:932 +0x206 | |
main.main() | |
github.com/mackee/kuiperbelt/_test/_testmain.go:68 +0x1d3 | |
Goroutine 19 (finished) created at: | |
github.com/mackee/kuiperbelt.(*Proxy).SendHandlerFunc() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:132 +0x428 | |
github.com/mackee/kuiperbelt.(*Proxy).SendHandlerFunc-fm() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:48 +0x5f | |
net/http.HandlerFunc.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1914 +0x51 | |
net/http.serverHandler.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:2610 +0xbc | |
net/http.(*conn).serve() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1797 +0x83b | |
================== | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c4201302a0 by goroutine 10: | |
github.com/mackee/kuiperbelt.TestProxySendHandlerFunc__BulkSend() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:61 +0xfff | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
Previous write at 0x00c4201302a0 by goroutine 20: | |
bytes.(*Buffer).grow() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:122 +0x450 | |
bytes.(*Buffer).Write() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:163 +0x16d | |
github.com/mackee/kuiperbelt.(*TestSession).Write() | |
<autogenerated>:1 +0x78 | |
github.com/mackee/kuiperbelt.(*Proxy).sendMessage() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:184 +0x7fc | |
Goroutine 10 (running) created at: | |
testing.(*T).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:800 +0x597 | |
testing.runTests.func1() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1053 +0xb2 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
testing.runTests() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1051 +0x50a | |
testing.(*M).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:932 +0x206 | |
main.main() | |
github.com/mackee/kuiperbelt/_test/_testmain.go:68 +0x1d3 | |
Goroutine 20 (finished) created at: | |
github.com/mackee/kuiperbelt.(*Proxy).SendHandlerFunc() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:132 +0x428 | |
github.com/mackee/kuiperbelt.(*Proxy).SendHandlerFunc-fm() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:48 +0x5f | |
net/http.HandlerFunc.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1914 +0x51 | |
net/http.serverHandler.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:2610 +0xbc | |
net/http.(*conn).serve() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1797 +0x83b | |
================== | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c4201302c8 by goroutine 10: | |
runtime.slicebytetostring() | |
/Users/shogo/sdk/go1.9beta1/src/runtime/string.go:72 +0x0 | |
github.com/mackee/kuiperbelt.TestProxySendHandlerFunc__BulkSend() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:61 +0x1053 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
Previous write at 0x00c4201302c8 by goroutine 20: | |
runtime.slicecopy() | |
/Users/shogo/sdk/go1.9beta1/src/runtime/slice.go:160 +0x0 | |
bytes.(*Buffer).Write() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:165 +0x121 | |
github.com/mackee/kuiperbelt.(*TestSession).Write() | |
<autogenerated>:1 +0x78 | |
github.com/mackee/kuiperbelt.(*Proxy).sendMessage() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:184 +0x7fc | |
Goroutine 10 (running) created at: | |
testing.(*T).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:800 +0x597 | |
testing.runTests.func1() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1053 +0xb2 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
testing.runTests() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1051 +0x50a | |
testing.(*M).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:932 +0x206 | |
main.main() | |
github.com/mackee/kuiperbelt/_test/_testmain.go:68 +0x1d3 | |
Goroutine 20 (finished) created at: | |
github.com/mackee/kuiperbelt.(*Proxy).SendHandlerFunc() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:132 +0x428 | |
github.com/mackee/kuiperbelt.(*Proxy).SendHandlerFunc-fm() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:48 +0x5f | |
net/http.HandlerFunc.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1914 +0x51 | |
net/http.serverHandler.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:2610 +0xbc | |
net/http.(*conn).serve() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1797 +0x83b | |
================== | |
--- FAIL: TestProxySendHandlerFunc__BulkSend (0.00s) | |
testing.go:707: race detected during execution of test | |
=== RUN TestProxySendHandlerFunc__SendInBinary | |
time="2017-06-22T20:26:47+09:00" level=info msg="connected session" session=hogehoge | |
--- FAIL: TestProxySendHandlerFunc__SendInBinary (0.01s) | |
=== RUN TestProxyCloseHandlerFunc__BulkClose | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c4201308c0 by goroutine 41: | |
github.com/mackee/kuiperbelt.TestProxyCloseHandlerFunc__BulkClose() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:61 +0x1243 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
Previous write at 0x00c4201308c0 by goroutine 49: | |
bytes.(*Buffer).grow() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:122 +0x450 | |
bytes.(*Buffer).Write() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:163 +0x16d | |
github.com/mackee/kuiperbelt.(*TestSession).Write() | |
<autogenerated>:1 +0x78 | |
github.com/mackee/kuiperbelt.(*Proxy).sendMessage() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:184 +0x7fc | |
github.com/mackee/kuiperbelt.(*Proxy).closeSession() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:215 +0x77 | |
Goroutine 41 (running) created at: | |
testing.(*T).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:800 +0x597 | |
testing.runTests.func1() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1053 +0xb2 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
testing.runTests() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1051 +0x50a | |
testing.(*M).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:932 +0x206 | |
main.main() | |
github.com/mackee/kuiperbelt/_test/_testmain.go:68 +0x1d3 | |
Goroutine 49 (finished) created at: | |
github.com/mackee/kuiperbelt.(*Proxy).CloseHandlerFunc() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:163 +0x428 | |
github.com/mackee/kuiperbelt.(*Proxy).CloseHandlerFunc-fm() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:49 +0x5f | |
net/http.HandlerFunc.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1914 +0x51 | |
net/http.serverHandler.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:2610 +0xbc | |
net/http.(*conn).serve() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1797 +0x83b | |
================== | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c4201308e8 by goroutine 41: | |
runtime.slicebytetostring() | |
/Users/shogo/sdk/go1.9beta1/src/runtime/string.go:72 +0x0 | |
github.com/mackee/kuiperbelt.TestProxyCloseHandlerFunc__BulkClose() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:61 +0x1297 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
Previous write at 0x00c4201308e8 by goroutine 49: | |
runtime.slicecopy() | |
/Users/shogo/sdk/go1.9beta1/src/runtime/slice.go:160 +0x0 | |
bytes.(*Buffer).Write() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:165 +0x121 | |
github.com/mackee/kuiperbelt.(*TestSession).Write() | |
<autogenerated>:1 +0x78 | |
github.com/mackee/kuiperbelt.(*Proxy).sendMessage() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:184 +0x7fc | |
github.com/mackee/kuiperbelt.(*Proxy).closeSession() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:215 +0x77 | |
Goroutine 41 (running) created at: | |
testing.(*T).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:800 +0x597 | |
testing.runTests.func1() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1053 +0xb2 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
testing.runTests() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1051 +0x50a | |
testing.(*M).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:932 +0x206 | |
main.main() | |
github.com/mackee/kuiperbelt/_test/_testmain.go:68 +0x1d3 | |
Goroutine 49 (finished) created at: | |
github.com/mackee/kuiperbelt.(*Proxy).CloseHandlerFunc() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:163 +0x428 | |
github.com/mackee/kuiperbelt.(*Proxy).CloseHandlerFunc-fm() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:49 +0x5f | |
net/http.HandlerFunc.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1914 +0x51 | |
net/http.serverHandler.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:2610 +0xbc | |
net/http.(*conn).serve() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1797 +0x83b | |
================== | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c420130930 by goroutine 41: | |
github.com/mackee/kuiperbelt.TestProxyCloseHandlerFunc__BulkClose() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:61 +0x10e8 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
Previous write at 0x00c420130930 by goroutine 50: | |
bytes.(*Buffer).grow() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:122 +0x450 | |
bytes.(*Buffer).Write() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:163 +0x16d | |
github.com/mackee/kuiperbelt.(*TestSession).Write() | |
<autogenerated>:1 +0x78 | |
github.com/mackee/kuiperbelt.(*Proxy).sendMessage() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:184 +0x7fc | |
github.com/mackee/kuiperbelt.(*Proxy).closeSession() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:215 +0x77 | |
Goroutine 41 (running) created at: | |
testing.(*T).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:800 +0x597 | |
testing.runTests.func1() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1053 +0xb2 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
testing.runTests() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1051 +0x50a | |
testing.(*M).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:932 +0x206 | |
main.main() | |
github.com/mackee/kuiperbelt/_test/_testmain.go:68 +0x1d3 | |
Goroutine 50 (finished) created at: | |
github.com/mackee/kuiperbelt.(*Proxy).CloseHandlerFunc() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:163 +0x428 | |
github.com/mackee/kuiperbelt.(*Proxy).CloseHandlerFunc-fm() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:49 +0x5f | |
net/http.HandlerFunc.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1914 +0x51 | |
net/http.serverHandler.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:2610 +0xbc | |
net/http.(*conn).serve() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1797 +0x83b | |
================== | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c420130958 by goroutine 41: | |
runtime.slicebytetostring() | |
/Users/shogo/sdk/go1.9beta1/src/runtime/string.go:72 +0x0 | |
github.com/mackee/kuiperbelt.TestProxyCloseHandlerFunc__BulkClose() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:61 +0x113c | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
Previous write at 0x00c420130958 by goroutine 50: | |
runtime.slicecopy() | |
/Users/shogo/sdk/go1.9beta1/src/runtime/slice.go:160 +0x0 | |
bytes.(*Buffer).Write() | |
/Users/shogo/sdk/go1.9beta1/src/bytes/buffer.go:165 +0x121 | |
github.com/mackee/kuiperbelt.(*TestSession).Write() | |
<autogenerated>:1 +0x78 | |
github.com/mackee/kuiperbelt.(*Proxy).sendMessage() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:184 +0x7fc | |
github.com/mackee/kuiperbelt.(*Proxy).closeSession() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:215 +0x77 | |
Goroutine 41 (running) created at: | |
testing.(*T).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:800 +0x597 | |
testing.runTests.func1() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1053 +0xb2 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
testing.runTests() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1051 +0x50a | |
testing.(*M).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:932 +0x206 | |
main.main() | |
github.com/mackee/kuiperbelt/_test/_testmain.go:68 +0x1d3 | |
Goroutine 50 (finished) created at: | |
github.com/mackee/kuiperbelt.(*Proxy).CloseHandlerFunc() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:163 +0x428 | |
github.com/mackee/kuiperbelt.(*Proxy).CloseHandlerFunc-fm() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:49 +0x5f | |
net/http.HandlerFunc.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1914 +0x51 | |
net/http.serverHandler.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:2610 +0xbc | |
net/http.(*conn).serve() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1797 +0x83b | |
================== | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c42000c498 by goroutine 41: | |
github.com/mackee/kuiperbelt.TestProxyCloseHandlerFunc__BulkClose() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy_test.go:159 +0xf1b | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
Previous write at 0x00c42000c498 by goroutine 49: | |
github.com/mackee/kuiperbelt.(*TestSession).Close() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/session_test.go:19 +0x3c | |
github.com/mackee/kuiperbelt.(*Proxy).closeSession() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:220 +0xbe | |
Goroutine 41 (running) created at: | |
testing.(*T).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:800 +0x597 | |
testing.runTests.func1() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1053 +0xb2 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
testing.runTests() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1051 +0x50a | |
testing.(*M).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:932 +0x206 | |
main.main() | |
github.com/mackee/kuiperbelt/_test/_testmain.go:68 +0x1d3 | |
Goroutine 49 (finished) created at: | |
github.com/mackee/kuiperbelt.(*Proxy).CloseHandlerFunc() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:163 +0x428 | |
github.com/mackee/kuiperbelt.(*Proxy).CloseHandlerFunc-fm() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:49 +0x5f | |
net/http.HandlerFunc.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1914 +0x51 | |
net/http.serverHandler.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:2610 +0xbc | |
net/http.(*conn).serve() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1797 +0x83b | |
================== | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c42000c4b8 by goroutine 41: | |
github.com/mackee/kuiperbelt.TestProxyCloseHandlerFunc__BulkClose() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy_test.go:162 +0xf40 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
Previous write at 0x00c42000c4b8 by goroutine 50: | |
github.com/mackee/kuiperbelt.(*TestSession).Close() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/session_test.go:19 +0x3c | |
github.com/mackee/kuiperbelt.(*Proxy).closeSession() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:220 +0xbe | |
Goroutine 41 (running) created at: | |
testing.(*T).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:800 +0x597 | |
testing.runTests.func1() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1053 +0xb2 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
testing.runTests() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1051 +0x50a | |
testing.(*M).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:932 +0x206 | |
main.main() | |
github.com/mackee/kuiperbelt/_test/_testmain.go:68 +0x1d3 | |
Goroutine 50 (finished) created at: | |
github.com/mackee/kuiperbelt.(*Proxy).CloseHandlerFunc() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:163 +0x428 | |
github.com/mackee/kuiperbelt.(*Proxy).CloseHandlerFunc-fm() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/proxy.go:49 +0x5f | |
net/http.HandlerFunc.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1914 +0x51 | |
net/http.serverHandler.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:2610 +0xbc | |
net/http.(*conn).serve() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1797 +0x83b | |
================== | |
--- FAIL: TestProxyCloseHandlerFunc__BulkClose (0.00s) | |
testing.go:707: race detected during execution of test | |
=== RUN TestProxySendHandlerFunc__StrictBroadcastFalse | |
--- FAIL: TestProxySendHandlerFunc__StrictBroadcastFalse (0.00s) | |
=== RUN TestProxySendHandlerFunc__StrictBroadcastTrue1 | |
--- FAIL: TestProxySendHandlerFunc__StrictBroadcastTrue1 (0.00s) | |
=== RUN TestProxySendHandlerFunc__StrictBroadcastTrue2 | |
--- FAIL: TestProxySendHandlerFunc__StrictBroadcastTrue2 (0.00s) | |
=== RUN TestProxyPingHandlerFunc | |
--- FAIL: TestProxyPingHandlerFunc (0.00s) | |
=== RUN TestWebSocketServer__Handler__SuccessAuthorized | |
time="2017-06-22T20:26:47+09:00" level=info msg="connected session" session=hogehoge | |
--- FAIL: TestWebSocketServer__Handler__SuccessAuthorized (0.00s) | |
=== RUN TestWebSocketServer__Handler__FailAuthorized | |
time="2017-06-22T20:26:47+09:00" level=error msg="connect error before upgrade" error="fail authorization!" status=403 | |
--- FAIL: TestWebSocketServer__Handler__FailAuthorized (0.01s) | |
=== RUN TestWebSocketServer__Handler__CloseByClient | |
time="2017-06-22T20:26:47+09:00" level=info msg="connected session" session=hogehoge | |
time="2017-06-22T20:26:47+09:00" level=info msg="success close callback." session=hogehoge | |
================== | |
WARNING: DATA RACE | |
Read at 0x00c42019ed91 by goroutine 40: | |
github.com/mackee/kuiperbelt.TestWebSocketServer__Handler__CloseByClient() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/server_test.go:212 +0xc12 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
Previous write at 0x00c42019ed91 by goroutine 105: | |
github.com/mackee/kuiperbelt.(*testSuccessConnectCallbackServer).CloseHandler() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/server_test.go:59 +0x40 | |
github.com/mackee/kuiperbelt.(*testSuccessConnectCallbackServer).CloseHandler-fm() | |
/Users/shogo/src/github.com/mackee/kuiperbelt/server_test.go:161 +0x5f | |
net/http.HandlerFunc.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1914 +0x51 | |
net/http.serverHandler.ServeHTTP() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:2610 +0xbc | |
net/http.(*conn).serve() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:1797 +0x83b | |
Goroutine 40 (running) created at: | |
testing.(*T).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:800 +0x597 | |
testing.runTests.func1() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1053 +0xb2 | |
testing.tRunner() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:754 +0x16c | |
testing.runTests() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:1051 +0x50a | |
testing.(*M).Run() | |
/Users/shogo/sdk/go1.9beta1/src/testing/testing.go:932 +0x206 | |
main.main() | |
github.com/mackee/kuiperbelt/_test/_testmain.go:68 +0x1d3 | |
Goroutine 105 (running) created at: | |
net/http.(*Server).Serve() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/server.go:2711 +0x37c | |
net/http/httptest.(*Server).goServe.func1() | |
/Users/shogo/sdk/go1.9beta1/src/net/http/httptest/server.go:277 +0xa2 | |
================== | |
--- FAIL: TestWebSocketServer__Handler__CloseByClient (0.02s) | |
testing.go:707: race detected during execution of test | |
=== RUN TestStats | |
--- FAIL: TestStats (0.00s) | |
stats_test.go:51: kuiperbelt.connections 5 1498130807 | |
kuiperbelt.total_connections 10 1498130807 | |
kuiperbelt.total_messages 4 1498130807 | |
kuiperbelt.connect_errors 3 1498130807 | |
kuiperbelt.message_errors 2 1498130807 | |
=== RUN TestStatsRace | |
--- FAIL: TestStatsRace (0.07s) | |
FAIL | |
FAIL github.com/mackee/kuiperbelt 0.151s | |
? github.com/mackee/kuiperbelt/cmd/ekbo [no test files] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment