Automattic / babble

Multilingual WordPress done right.
https://wordpress.org/plugins/babble/
246 stars 50 forks source link

Fix behat tests #319

Closed joehoyle closed 9 years ago

joehoyle commented 9 years ago

Run the webserver on port 80

johnbillion commented 9 years ago

There's a cURL error on Travis for the login step :(

cURL error 7: couldn't connect to host (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) (GuzzleHttp\Exception\ConnectException)

I wonder if switching to 127.0.0.1 would work.

johnbillion commented 9 years ago

Hm that didn't work. cURL can't connect to localhost/127.0.0.1. It might be because Travis uses ipv6 and doesn't expose an ipv4 address for its boxes.

simonwheatley commented 9 years ago

Does this affect the Travis environment? See 781d1a3

@johnbillion @joehoyle Yes, defining sudo: true bars us from the Travis container infrastructure and forces us to use VM based test instances… not the end of the world, but slower. Talk me through what we gain from it (because if it's "working tests" then that's a strong argument :smiley:).

Hm that didn't work. cURL can't connect to localhost/127.0.0.1. It might be because Travis uses ipv6 and doesn't expose an ipv4 address for its boxes.

@johnbillion I get a similar error locally, do you?

joehoyle commented 9 years ago

Closed in favour of #321