Skip to content
Open
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 @@ -46,7 +46,7 @@ import org.groundplatform.domain.repository.SurveyRepositoryInterface
import timber.log.Timber

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

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
  1. Add or update unit tests for all new or changed behaviors. (link)


@OptIn(ExperimentalCoroutinesApi::class)
@Singleton
Expand Down
Loading