Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing database dbsrv should be moved to a separated config #3

Open
l4u opened this issue Aug 6, 2012 · 1 comment
Open

Testing database dbsrv should be moved to a separated config #3

l4u opened this issue Aug 6, 2012 · 1 comment

Comments

@l4u
Copy link

l4u commented Aug 6, 2012

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants