ory/ladon

Can't get integration tests working

olivierdeckers opened this issue · 2 comments

The only way I can get the tests running, is by commenting out connectRDB() in TestMain.

connectRDB() results in the following fatal error: 2017/02/26 13:57:18 Could not start resource: : API error (500): {"message":"invalid environment variable: "}

connectMySQL() also prints the following (non-fatal) error message repeatedly: [mysql] 2017/02/26 14:00:09 packets.go:33: unexpected EOF

My Docker version is: 1.13.1, build 092cba3 (OSX)
I run the test using go test -v . after installing the dependencies using glide install

Hm, it's possible that something changed in the RethinkDB image, not sure what - I would have to investigate.

Regarding MySQL: It's fucking slow and takes ages to boot, hence the EOF errors. Dockertest (the library used for this) is using exponential backoff to retry it. So it's more like a warning than an error but I can't shut it off because it's the driver that is emitting those.

closing due to inactivity