Skip to content

Commit b33daef

Browse files
authored
Merge pull request #531 from stripe/ob-drop-timeout-test
Drop connection timeout test
2 parents d3b83bf + 76a98b7 commit b33daef

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/test/java/com/stripe/functional/TimeoutTest.java

-13
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ public class TimeoutTest extends BaseStripeTest {
1919
@Rule
2020
public ExpectedException thrown = ExpectedException.none();
2121

22-
@Test
23-
public void testConnectTimeout() throws IOException, StripeException {
24-
// Kind of a hack, but we use the non-routable address 10.255.255.0 to trigger a connection
25-
// timeout
26-
Stripe.overrideApiBase(String.format("http://10.255.255.0"));
27-
28-
thrown.expect(APIConnectionException.class);
29-
thrown.expectMessage("connect timed out");
30-
31-
final RequestOptions options = RequestOptions.builder().setConnectTimeout(1).build();
32-
Balance.retrieve(options);
33-
}
34-
3522
@Test
3623
public void testReadTimeout() throws IOException, StripeException {
3724
// Create a local server that does nothing to trigger a read timeout

0 commit comments

Comments
 (0)