Testing database dbsrv should be moved to a separated config
l4u opened this issue · 1 comments
l4u commented
eredis_pool:start() tries to connect to a localhost redis database because of the dbsrv configs
if there is no local redis server, there will be a connection error.
hiroeorz commented
I separated config file "./test.config", and changed Makefile
$(REBAR) skip_deps=true eunit
-> ERL_FLAGS="-config test.config" $(REBAR) skip_deps=true eunit
If you want to use custom environment, create config file and exec eunit.
ERL_FLAGS="-config yourconfigfile.config" ./rebar skip_deps=true eunit
Thank you.