Jakub Gwóźdź
06/27/2023, 8:57 AMmockk
a potentially blocking dependency (in my case it would be org.apache.kafka.clients.producer.KafkaProducer#send(...)
which returns some Future<...>
)Dmitry Khalanskiy [JB]
06/27/2023, 9:17 AMJakub Gwóźdź
06/27/2023, 9:42 AMJakub Gwóźdź
06/27/2023, 9:42 AMJakub Gwóźdź
06/27/2023, 1:22 PMFuture.get()
😞Dmitry Khalanskiy [JB]
06/27/2023, 1:25 PMFuture.get
itself is not necessarily blocking. But if the Future.get
call actually makes the thread sleep, I think BlockHound will react. At least I don't remember any explicit exceptions being made for Future.get
, and I don't think they would make sense.Jakub Gwóźdź
06/27/2023, 2:46 PM