saveourtool/save-cloud

Improve testing of background tasks

Open

#240 geöffnet am 27. Aug. 2021

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Kotlin (4 Forks)github user discovery
enhancementgood first issue

Repository-Metriken

Stars
 (38 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide