canonical / dqlite

Embeddable, replicated and fault-tolerant SQL engine.
https://dqlite.io
Other
3.85k stars 216 forks source link

feat: proper timeout handling for snapshots #670

Closed letFunny closed 2 months ago

letFunny commented 2 months ago

Added both unit tests and tests that use libuv timers directly

Test with uv_timer_t

uv_timer_t

Test with mock implementation of timers

ut

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 97.05882% with 4 lines in your changes missing coverage. Please review.

Project coverage is 77.84%. Comparing base (ee07596) to head (054b511). Report is 14 commits behind head on master.

Files Patch % Lines
src/raft/recv_install_snapshot.c 90.69% 2 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #670 +/- ## ========================================== + Coverage 77.56% 77.84% +0.27% ========================================== Files 197 197 Lines 27638 27761 +123 Branches 5486 5493 +7 ========================================== + Hits 21438 21611 +173 - Misses 4326 4333 +7 + Partials 1874 1817 -57 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.