moshen / node-googlemaps

A simple way to query the Google Maps API from Node.js
MIT License
560 stars 148 forks source link

test connection refused error #58

Closed fabriziomoscon closed 10 years ago

fabriziomoscon commented 10 years ago

This is not a good way to test a network failure, but I reckon it is slightly better than the previous test, since it relies on a localhost IP and reserved port. A better test would require to inject a request mock into the library, but this requires the new library to accept such injection