Created
December 3, 2015 17:21
-
-
Save chantra/78c4dba2cbf972974e72 to your computer and use it in GitHub Desktop.
This file contains 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
root@2822036df305:/usr/src/myapp# /usr/local/go/bin/go test -v github.com/facebook/augmented-traffic-control/src/api | |
=== RUN TestIndex | |
2015/12/03 17:17:41 http: panic serving [::1]:43043: runtime error: invalid memory address or nil pointer dereference | |
goroutine 12 [running]: | |
net/http.(*conn).serve.func1(0xc82012e160, 0x7fb1561c2020, 0xc820024280) | |
/usr/local/go/src/net/http/server.go:1287 +0xb5 | |
github.com/facebook/augmented-traffic-control/src/api.getProxiedClientAddr(0x0, 0xc8200fac40, 0x0, 0x0, 0x0, 0x0) | |
/usr/src/myapp/.gopath/src/github.com/facebook/augmented-traffic-control/src/api/utils.go:151 +0x7b1 | |
github.com/facebook/augmented-traffic-control/src/api.GetClientAddr(0xc8200fac40, 0x0, 0x0) | |
/usr/src/myapp/.gopath/src/github.com/facebook/augmented-traffic-control/src/api/utils.go:146 +0x45 | |
github.com/facebook/augmented-traffic-control/src/api.bindInfo.getPrimarySecondaryAddrs(0x989040, 0x7, 0x989078, 0x7, 0x989180, 0x2, 0xc82000f3c0, 0x1, 0xc8200fac40, 0x0, ...) | |
/usr/src/myapp/.gopath/src/github.com/facebook/augmented-traffic-control/src/api/assets.go:20 +0x50 | |
github.com/facebook/augmented-traffic-control/src/api.(*bindInfo).templateFor(0xc820010940, 0xc8200fac40, 0x833) | |
/usr/src/myapp/.gopath/src/github.com/facebook/augmented-traffic-control/src/api/assets.go:56 +0xb4 | |
github.com/facebook/augmented-traffic-control/src/api.rootHandler.func1(0x7fb1561c22a0, 0xc82012e420, 0xc8200fac40) | |
/usr/src/myapp/.gopath/src/github.com/facebook/augmented-traffic-control/src/api/assets.go:83 +0x676 | |
net/http.HandlerFunc.ServeHTTP(0xc820115f90, 0x7fb1561c22a0, 0xc82012e420, 0xc8200fac40) | |
/usr/local/go/src/net/http/server.go:1422 +0x3a | |
github.com/gorilla/mux.(*Router).ServeHTTP(0xc820014780, 0x7fb1561c22a0, 0xc82012e420, 0xc8200fac40) | |
/usr/src/myapp/.gopath/src/github.com/gorilla/mux/mux.go:100 +0x29e | |
net/http.serverHandler.ServeHTTP(0xc820128360, 0x7fb1561c22a0, 0xc82012e420, 0xc8200fac40) | |
/usr/local/go/src/net/http/server.go:1862 +0x19e | |
net/http.(*conn).serve(0xc82012e160) | |
/usr/local/go/src/net/http/server.go:1361 +0xbee | |
created by net/http.(*Server).Serve | |
/usr/local/go/src/net/http/server.go:1910 +0x3f6 | |
--- FAIL: TestIndex (0.01s) | |
api_test.go:303: Couldn't fetch url /: Get http://[::1]:42995/: EOF | |
=== RUN TestGetsServerInfo | |
--- PASS: TestGetsServerInfo (0.00s) | |
=== RUN TestCreatesGroup | |
--- PASS: TestCreatesGroup (0.00s) | |
=== RUN TestGetsToken | |
--- PASS: TestGetsToken (0.00s) | |
=== RUN TestJoinsGroup | |
--- PASS: TestJoinsGroup (0.00s) | |
=== RUN TestLeavesGroup | |
--- PASS: TestLeavesGroup (0.00s) | |
=== RUN TestCreatesProfile | |
--- PASS: TestCreatesProfile (0.00s) | |
=== RUN TestGetsProfiles | |
--- PASS: TestGetsProfiles (0.00s) | |
=== RUN TestDeletesProfiles | |
--- PASS: TestDeletesProfiles (0.00s) | |
=== RUN TestDBCreatesSchema | |
--- PASS: TestDBCreatesSchema (0.00s) | |
=== RUN TestDBInsertsProfile | |
--- PASS: TestDBInsertsProfile (0.00s) | |
=== RUN TestDBGetsProfiles | |
--- PASS: TestDBGetsProfiles (0.00s) | |
=== RUN TestDBDeletesProfiles | |
--- PASS: TestDBDeletesProfiles (0.00s) | |
=== RUN TestNoSuchItem | |
--- PASS: TestNoSuchItem (0.00s) | |
=== RUN TestHandlesReturnedError | |
2015/12/03 17:17:41 Error: This message is okay in tests! | |
--- PASS: TestHandlesReturnedError (0.00s) | |
=== RUN TestHandlesThrownError | |
2015/12/03 17:17:41 panic: this message is okay in tests! | |
--- PASS: TestHandlesThrownError (0.00s) | |
=== RUN TestGetsProxiedAddr | |
2015/12/03 17:17:41 Unexpected non-proxied request from this.message.ok.in.tests | |
2015/12/03 17:17:41 Unexpected proxied request from this.message.ok.in.tests on behalf of 2.2.2.2 | |
--- PASS: TestGetsProxiedAddr (0.00s) | |
FAIL | |
exit status 1 | |
FAIL github.com/facebook/augmented-traffic-control/src/api 0.047s | |
ioot@2822036df305:/usr/src/myapp# /usr/local/go/bin/go test -v github.com/facebook/augmented-traffic-control/src/api | |
=== RUN TestIndex | |
--- PASS: TestIndex (0.00s) | |
=== RUN TestGetsServerInfo | |
--- PASS: TestGetsServerInfo (0.00s) | |
=== RUN TestCreatesGroup | |
--- PASS: TestCreatesGroup (0.00s) | |
=== RUN TestGetsToken | |
--- PASS: TestGetsToken (0.00s) | |
=== RUN TestJoinsGroup | |
--- PASS: TestJoinsGroup (0.00s) | |
=== RUN TestLeavesGroup | |
--- PASS: TestLeavesGroup (0.00s) | |
=== RUN TestCreatesProfile | |
--- PASS: TestCreatesProfile (0.00s) | |
=== RUN TestGetsProfiles | |
--- PASS: TestGetsProfiles (0.00s) | |
=== RUN TestDeletesProfiles | |
--- PASS: TestDeletesProfiles (0.00s) | |
=== RUN TestDBCreatesSchema | |
--- PASS: TestDBCreatesSchema (0.00s) | |
=== RUN TestDBInsertsProfile | |
--- PASS: TestDBInsertsProfile (0.00s) | |
=== RUN TestDBGetsProfiles | |
--- PASS: TestDBGetsProfiles (0.00s) | |
=== RUN TestDBDeletesProfiles | |
--- PASS: TestDBDeletesProfiles (0.00s) | |
=== RUN TestNoSuchItem | |
--- PASS: TestNoSuchItem (0.00s) | |
=== RUN TestHandlesReturnedError | |
2015/12/03 17:19:48 Error: This message is okay in tests! | |
--- PASS: TestHandlesReturnedError (0.00s) | |
=== RUN TestHandlesThrownError | |
2015/12/03 17:19:48 panic: this message is okay in tests! | |
--- PASS: TestHandlesThrownError (0.00s) | |
=== RUN TestGetsProxiedAddr | |
2015/12/03 17:19:48 Unexpected non-proxied request from this.message.ok.in.tests | |
2015/12/03 17:19:48 Unexpected proxied request from this.message.ok.in.tests on behalf of 2.2.2.2 | |
--- PASS: TestGetsProxiedAddr (0.00s) | |
PASS | |
ok github.com/facebook/augmented-traffic-control/src/api 0.050s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment