Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Small updates for local testing of server tests like in CircleCI #3481
@reggieriser @mr337 - I'm looking into it now. We definitely want to be using the postgres container inside the docker-compose file because we're after the same performance as on CircleCI via compatibility mode. If we use the DB hosted on docker outside of the compose file then we don't have that performance bottleneck, which eliminates the point of testing this way.
I figured it out. When we were only running one container and it exited then docker-compose had no reason to stay open. With my change there are two containers and the DB container has no reason to exit. So I added the flag
I did see test failures when I ran this. After exit you can run