Add exceptions for test_connectLjava_net_SocketAddressI

OldSocketTest's test_connectLjava_net_SocketAddressI would sometimes
fail on certain networks. The connection attempt to the 'non-reachable' IP
 would be reset by a local router before the expected
timeout occured, thus causing the test to fail.

This change adds additional catch clauses for cases like this,
looking for ECONNREFUSED messages.

Bug: 18143878

Change-Id: Ia98cfe75a5abce9a53bc062d5c8e81cf2d1d63e4
Signed-off-by: Tiberiu Breana <tiberiu.a.breana@intel.com>
1 file changed