|
25 | 25 | import com.easypost.model.TrackingLocation;
|
26 | 26 | import com.easypost.model.Webhook;
|
27 | 27 | import com.easypost.model.WebhookCollection;
|
| 28 | +import com.easypost.net.EasyPostResource; |
28 | 29 | import org.junit.BeforeClass;
|
29 | 30 | import org.junit.Ignore;
|
30 | 31 | import org.junit.Rule;
|
@@ -355,7 +356,7 @@ public void testTrackerCreateAndRetrieve() throws EasyPostException, ParseExcept
|
355 | 356 | @Test
|
356 | 357 | public void testBatchTrackerCreate() throws EasyPostException {
|
357 | 358 |
|
358 |
| - String[] trackingCodes = new String[]{"EZ1000000001", "EZ1000000002", "EZ1000000003"}; |
| 359 | + String[] trackingCodes = new String[] { "EZ1000000001", "EZ1000000002", "EZ1000000003" }; |
359 | 360 | HashMap<String, Object> trackingCodeParams = new HashMap<String, Object>();
|
360 | 361 |
|
361 | 362 | for (int i = 0; i < trackingCodes.length; i++) {
|
@@ -1072,6 +1073,10 @@ public void testClientTimeout() throws EasyPostException {
|
1072 | 1073 | assertEquals(Order.getConnectTimeoutMilliseconds(), timeout);
|
1073 | 1074 | assertEquals(Order.getReadTimeoutMilliseconds(), timeout);
|
1074 | 1075 | assertEquals(Order.getAppEngineTimeoutSeconds(), timeout, 0.001);
|
| 1076 | + // Need to reset these timeouts to default values for other tests to run correctly |
| 1077 | + Order.setConnectTimeoutMilliseconds(EasyPostResource.DEFAULT_CONNECT_TIMEOUT_MILLISECONDS); |
| 1078 | + Order.setReadTimeoutMilliseconds(EasyPostResource.DEFAULT_READ_TIMEOUT_MILLISECONDS); |
| 1079 | + Order.setAppEngineTimeoutSeconds(EasyPostResource.DEFAULT_APP_ENGINE_TIMEOUT_SECONDS); |
1075 | 1080 | }
|
1076 | 1081 |
|
1077 | 1082 |
|
|
0 commit comments