saveourtool/save-cloud

Improve testing of background tasks

Open

#240 ouverte le 27 août 2021

Voir sur GitHub
 (0 commentaires) (0 réactions) (1 assigné)Kotlin (4 forks)github user discovery
enhancementgood first issue

Métriques du dépôt

Stars
 (38 stars)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur