saveourtool/save-cloud

Improve testing of background tasks

Open

#240 建立於 2021年8月27日

在 GitHub 查看
 (0 留言) (0 反應) (1 負責人)Kotlin (4 fork)github user discovery
enhancementgood first issue

倉庫指標

Star
 (38 star)
PR 合併指標
 (PR 指標待抓取)

描述

We have a lot of cases, when request handler returns and triggers a background job, i.e. subscribes to a Publisher inside it's doOnSuccess. In tests to verify that backgound jobs are working correctly we usually call Thread.sleep. This is sub-optimal, because jobs take indefinite time and blocking increases duration of tests.

貢獻者指南