Skip to content

Commit

Permalink
✅ test: Increase the timeout for Kafka source integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukan10 committed May 9, 2024
1 parent 6edcfa3 commit 3e7c3db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class KafkaSourceIntegrationTest extends AnyFlatSpec with ToFhirTestSpec with Be
sinkSettings = fhirSinkSettings
)
streamingQueryFutures.foreach(sq => {
val streamingQuery: StreamingQuery = Await.result(sq._2, FiniteDuration.apply(5, TimeUnit.SECONDS)) // First wait for the StreamingQuery to become available
val streamingQuery: StreamingQuery = Await.result(sq._2, FiniteDuration.apply(60, TimeUnit.SECONDS)) // First wait for the StreamingQuery to become available
streamingQuery.awaitTermination(20000L) // Wait for 20 seconds to consume and write to the fhir repo and terminate
streamingQuery.stop()
io.FileUtils.deleteDirectory(new File(execution.getCheckpointDirectory(sq._1))) // Clear checkpoint directory to prevent conflicts with other tests
Expand Down

0 comments on commit 3e7c3db

Please sign in to comment.