Giving a wrong endpoint right now for an integration test will exceed the 2 seconds time that mocha uses by default. I guess the server takes longer than two seconds to time out, so the test has no time to fail. Play with the default time, figure out what happens when the server times out, and make changes to the test (or test suite) accordingly.