Repository navigation
fix: Increase remote survey load timeout from 30s to 60s - #4011
joshuaallgaier2-cmd wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request increases the remote survey load timeout from 30 seconds to 60 seconds in SurveyRepository.kt. The reviewer pointed out that this change will cause an existing unit test (getRemoteSurvey throws error when loading remote survey times out) in SurveyRepositoryTest.kt to fail because its simulated delay of 35 seconds is now shorter than the new timeout. It is recommended to update the test's delay to at least 65 seconds to ensure the timeout behavior is still correctly verified.
|
|
||
| private const val ACTIVATE_SURVEY_TIMEOUT_MILLS: Long = 3 * 1000 | ||
| private const val LOAD_REMOTE_SURVEY_TIMEOUT_MILLS: Long = 30 * 1000 | ||
| private const val LOAD_REMOTE_SURVEY_TIMEOUT_MILLS: Long = 60 * 1000 |
There was a problem hiding this comment.
Increasing the remote survey load timeout to 60 seconds will cause the existing unit test getRemoteSurvey throws error when loading remote survey times out in SurveyRepositoryTest.kt to fail. The test currently uses a delay of 35 seconds (35000 ms), which is now shorter than the new 60-second timeout, so it will no longer trigger a TimeoutCancellationException.\n\nPlease update the delay in SurveyRepositoryTest.kt (line 135) to be greater than 60 seconds (e.g., 65000 ms) to ensure the test continues to pass and correctly verifies the timeout behavior.
References
- Add or update unit tests for all new or changed behaviors. (link)
Fixes #2901