This leaves the test server running. Besides eating resources, this can cause weird behavior. In our case, tests in Project A ran on one machine and failed with a Riak refusal to connect on another. This was because the app being tested didn't set up the test server at all, but on the machine where the tests ran worked, a test server was still running from a different app.
As a side note, it's confusing to have to use .instance to stop the server but not to clear it.
I'm using Rails and Rspec. Running
rails g ripple
adds the following tospec_helper
:However, it does not insert a statement to stop the test server:
This leaves the test server running. Besides eating resources, this can cause weird behavior. In our case, tests in Project A ran on one machine and failed with a Riak refusal to connect on another. This was because the app being tested didn't set up the test server at all, but on the machine where the tests ran worked, a test server was still running from a different app.
As a side note, it's confusing to have to use
.instance
to stop the server but not to clear it.