Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit 5e7be4f

Browse files
committed
Tests: Explicitly set connectTimeout before testing it
1 parent 6f7ed64 commit 5e7be4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

algoliasearch/src/test/java/com/algolia/search/saas/IndexTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ public void testDNSTimeout() throws Exception {
449449
List<String> hostsArray = (List<String>) Whitebox.getInternalState(client, "readHosts");
450450
hostsArray.set(0, appId + "-dsn.algolia.biz");
451451
Whitebox.setInternalState(client, "readHosts", hostsArray);
452+
client.setConnectTimeout(2000);
452453

453454
//And an index that does not cache search queries
454455
index.disableSearchCache();

0 commit comments

Comments
 (0)