Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ object HTTPVariables {
* The maximal runtime of a transaction
* In milliseconds
*/
private const val HTTP_CONNECTION_TIMEOUT = 10000L
private const val HTTP_CONNECTION_TIMEOUT = 20000L

/**
* Getter function for [HTTP_CONNECTION_TIMEOUT]
Expand All @@ -19,7 +19,7 @@ object HTTPVariables {
* The maximal runtime of a transaction
* In milliseconds
*/
private const val HTTP_READ_TIMEOUT = 10000L
private const val HTTP_READ_TIMEOUT = 20000L

/**
* Getter function for [HTTP_READ_TIMEOUT]
Expand All @@ -33,7 +33,7 @@ object HTTPVariables {
* The maximal runtime of a transaction
* In milliseconds
*/
private const val HTTP_WRITE_TIMEOUT = 10000L
private const val HTTP_WRITE_TIMEOUT = 20000L

/**
* Getter function for [HTTP_WRITE_TIMEOUT]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ object TimeVariables {
* The maximal runtime of a transaction
* In milliseconds
*/
private const val TRANSACTION_TIMEOUT = 60000L
private const val TRANSACTION_TIMEOUT = 180000L

/**
* Getter function for [TRANSACTION_TIMEOUT]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ class HTTPVariablesTest {

@Test
fun getHTTPConnectionTimeout() {
Assert.assertEquals(HTTPVariables.getHTTPConnectionTimeout(), 10000L)
Assert.assertEquals(HTTPVariables.getHTTPConnectionTimeout(), 20000L)
}

@Test
fun getHTTPReadTimeout() {
Assert.assertEquals(HTTPVariables.getHTTPReadTimeout(), 10000L)
Assert.assertEquals(HTTPVariables.getHTTPReadTimeout(), 20000L)
}

@Test
fun getHTTPWriteTimeout() {
Assert.assertEquals(HTTPVariables.getHTTPWriteTimeout(), 10000L)
Assert.assertEquals(HTTPVariables.getHTTPWriteTimeout(), 20000L)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class TimeVariablesTest {

@Test
fun getTransactionTimeout() {
Assert.assertEquals(TimeVariables.getTransactionTimeout(), 60000L)
Assert.assertEquals(TimeVariables.getTransactionTimeout(), 180000L)
}

@Test
Expand Down