File tree 1 file changed +0
-13
lines changed
src/test/java/com/stripe/functional
1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,6 @@ public class TimeoutTest extends BaseStripeTest {
19
19
@ Rule
20
20
public ExpectedException thrown = ExpectedException .none ();
21
21
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
-
35
22
@ Test
36
23
public void testReadTimeout () throws IOException , StripeException {
37
24
// Create a local server that does nothing to trigger a read timeout
You can’t perform that action at this time.
0 commit comments