Skip to content

Commit

Permalink
✅ Increase the timeout duration for some tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sinaci authored and YemreGurses committed Sep 2, 2024
1 parent b917128 commit 3e9e5da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ class MappingExecutionEndpointTest extends BaseEndpointTest with OnFhirTestConta
// run the job
Post(s"/${webServerConfig.baseUri}/${ProjectEndpoint.SEGMENT_PROJECTS}/$projectId/${JobEndpoint.SEGMENT_JOB}/$jobId/${JobEndpoint.SEGMENT_RUN}", HttpEntity(ContentTypes.`application/json`, "")) ~> route ~> check {
status shouldEqual StatusCodes.OK
// Mappings run asynchronously. Wait at most 30 seconds for mappings to complete.
val success = waitForCondition(30) {
// Mappings run asynchronously. Wait at most 45 seconds for mappings to complete.
val success = waitForCondition(45) {
fsSinkFolder.listFiles.exists(_.getName.contains("results.csv")) && {
// read the csv file created in the file system
val csvFile: File = fsSinkFolder.listFiles.find(_.getName.contains("results.csv"))
Expand Down

0 comments on commit 3e9e5da

Please sign in to comment.