calabash / calabash-ios

Calabash for iOS
Other
1.81k stars 369 forks source link

After we get HTTPClient::ConnecTimeoutError, subsequent tests fail with Connection refused #1351

Open guruprasadsr opened 7 years ago

guruprasadsr commented 7 years ago

When running my test cases as a batch, we see that once we get a HTTPClient::ConnecTimeoutError, Rest all of the test cases fail with the error : Connection refused - Connection refused - connect(2) for "192.168.2.51" port 37265 (192.168.2.51:37265) (Errno::ECONNREFUSED)

Versions: Mac OS: 10.13.1 run loop version: 2.6.1 Device Version: 11.0 (iPhone 7 Plus)

jmoody commented 7 years ago

When running my test cases as a batch, What does this mean?

Rest all of the test cases fail with the error : Connection refused

The embedded server is crashing or the device is no longer reachable on the network.

Look at the device logs in Xcode.

seshusangeetha commented 6 years ago

I too quite often face this issue while running the tests as a batch. Is there any work around to avoid these kind of errors like ConnecTimeoutError, RecieveTimeoutError,.....etc. that results in the failure of subsequent test cases.