Use 127.0.0.1 instead of localhost. in repair test

The latter _should_ resolve to localhost and was being used as an easy
synonym for it, but this hack isn't working in Travis. Switched to the
IP address instead, which I didn't think would work but does.