Skip to content

Commit

Permalink
Allow OKTA_CLIENT_CONNECTIONTIMEOUT to be set (#396)
Browse files Browse the repository at this point in the history
* Increase base client connection timeout

Since we have lot of flaky ITs that break due to a laggy backend, we should increase the client connection timeout to prevent IT failures in Oktapreview test org. This timeout value could be reduced if we migrate to prod org (which is planned).

* Update DefaultClientBuilderTest.groovy

* Update DefaultClientBuilderTest.groovy
  • Loading branch information
arvindkrishnakumar-okta authored Jun 5, 2020
1 parent 2982703 commit 471f676
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ class DefaultClientBuilderTest {
System.clearProperty("okta.client.clientId")
System.clearProperty("okta.client.scopes")
System.clearProperty("okta.client.privateKey")
System.clearProperty("okta.client.connectionTimeout")

RestoreEnvironmentVariables.setEnvironmentVariable("OKTA_CLIENT_TOKEN", null)
RestoreEnvironmentVariables.setEnvironmentVariable("OKTA_CLIENT_ORGURL", null)
RestoreEnvironmentVariables.setEnvironmentVariable("OKTA_CLIENT_AUTHORIZATIONMODE", null)
RestoreEnvironmentVariables.setEnvironmentVariable("OKTA_CLIENT_CLIENTID", null)
RestoreEnvironmentVariables.setEnvironmentVariable("OKTA_CLIENT_SCOPES", null)
RestoreEnvironmentVariables.setEnvironmentVariable("OKTA_CLIENT_PRIVATEKEY", null)
RestoreEnvironmentVariables.setEnvironmentVariable("OKTA_CLIENT_CONNECTIONTIMEOUT", null)
}

@Test
Expand Down

0 comments on commit 471f676

Please sign in to comment.