|
|
|
|
|
by tetraodonpuffer
3142 days ago
|
|
no problem, btw, the first time I did make test I got this, but after that I was not able to repro it again and make test always worked, pasting here in case you are interested Creating authnserver_server_1 ... done
TEST_REDIS_URL=redis://127.0.0.1:8701/12 \
TEST_MYSQL_URL=mysql://root@127.0.0.1:8702/authnservertest \
go test ./data/... ./models/... ./tokens/... ./ops/... ./config/... ./lib/... ./api/... ./services/... .
[mysql] 2017/11/08 13:27:23 packets.go:33: unexpected EOF
[mysql] 2017/11/08 13:27:23 packets.go:33: unexpected EOF
[mysql] 2017/11/08 13:27:23 packets.go:33: unexpected EOF
--- FAIL: TestAccountStore (0.01s)
--- FAIL: TestAccountStore/MySQL (0.00s)
Error Trace: account_store_test.go:43
Error: Received unexpected error driver: bad connection
Connect
github.com/keratin/authn-server/data/mysql.ensureDB
/home/luser/go/external/src/github.com/keratin/authn-server/data/mysql/db.go:71
github.com/keratin/authn-server/data/mysql.TestDB
/home/luser/go/external/src/github.com/keratin/authn-server/data/mysql/db.go:27
github.com/keratin/authn-server/data_test.TestAccountStore.func3
/home/luser/go/external/src/github.com/keratin/authn-server/data/account_store_test.go:42
testing.tRunner
/usr/local/stow/go-1.9.0/go/src/testing/testing.go:746
runtime.goexit
/usr/local/stow/go-1.9.0/go/src/runtime/asm_amd64.s:2337
ensureDB
github.com/keratin/authn-server/data/mysql.TestDB
/home/luser/go/external/src/github.com/keratin/authn-server/data/mysql/db.go:29
github.com/keratin/authn-server/data_test.TestAccountStore.func3
/home/luser/go/external/src/github.com/keratin/authn-server/data/account_store_test.go:42
testing.tRunner
/usr/local/stow/go-1.9.0/go/src/testing/testing.go:746
runtime.goexit
/usr/local/stow/go-1.9.0/go/src/runtime/asm_amd64.s:2337
FAIL
FAIL github.com/keratin/authn-server/data 0.040s
? github.com/keratin/authn-server/data/mock [no test files]
? github.com/keratin/authn-server/data/mysql [no test files]
ok github.com/keratin/authn-server/data/redis 0.771s
? github.com/keratin/authn-server/data/sqlite3 [no test files]
|
|