This repository has been archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from launchdarkly/pk/ms-timeouts
Pk/ms timeouts
- Loading branch information
Showing
9 changed files
with
89 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dependencies: | ||
pre: | ||
- cp gradle.properties.example gradle.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
githubUser = YOUR_GITHUB_USERNAME | ||
githubPassword = YOUR_GITHUB_PASSWORD | ||
signing.keyId = 5669D902 | ||
signing.password = SIGNING_PASSWORD | ||
signing.secretKeyRingFile = SECRET_RING_FILE | ||
ossrhUsername = launchdarkly | ||
ossrhPassword = OSSHR_PASSWORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.launchdarkly.client; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
|
||
import org.junit.Test; | ||
|
||
public class LDConfigTest { | ||
@Test | ||
public void testConnectTimeoutSpecifiedInSeconds() { | ||
LDConfig config = new LDConfig.Builder().connectTimeout(3).build(); | ||
|
||
assertEquals(3000, config.connectTimeout); | ||
} | ||
|
||
@Test | ||
public void testConnectTimeoutSpecifiedInMilliseconds() { | ||
LDConfig config = new LDConfig.Builder().connectTimeoutMillis(3000).build(); | ||
|
||
assertEquals(3000, config.connectTimeout); | ||
} | ||
@Test | ||
public void testSocketTimeoutSpecifiedInSeconds() { | ||
LDConfig config = new LDConfig.Builder().socketTimeout(3).build(); | ||
|
||
assertEquals(3000, config.socketTimeout); | ||
} | ||
|
||
@Test | ||
public void testSocketTimeoutSpecifiedInMilliseconds() { | ||
LDConfig config = new LDConfig.Builder().socketTimeoutMillis(3000).build(); | ||
|
||
assertEquals(3000, config.socketTimeout); | ||
} | ||
} |