microservices-demo / user

The users microservice.
http://microservices-demo.github.io/
Apache License 2.0
91 stars 617 forks source link

Mongo tests need to return exit code from M.Run() #27

Closed jasonrichardsmith closed 7 years ago

jasonrichardsmith commented 7 years ago

The current Mongo tests don't return the Exit code because it uses testing.M. Run returns an exit code that must be used to exit the tests.

https://github.com/microservices-demo/user/blob/master/db/mongodb/mongodb_test.go#L37

jasonrichardsmith commented 7 years ago

This also means failing test here needs to be fixed https://github.com/microservices-demo/user/blob/master/db/mongodb/mongodb_test.go#L136