saveourtool/save-cloud

Improve testing of background tasks

Open

#240 aberto em 27 de ago. de 2021

Ver no GitHub
 (0 comments) (0 reactions) (1 assignee)Kotlin (4 forks)github user discovery
enhancementgood first issue

Métricas do repositório

Stars
 (38 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador