cowsql / raft

Asynchronous C implementation of the Raft consensus protocol
https://raft.readthedocs.io
Other
53 stars 6 forks source link

test: Fix flaky finalizeSegment assertion #128

Closed freeekanayaka closed 10 months ago

freeekanayaka commented 10 months ago

The code that finalizes the segment and renames it is run in the threadpool, and so could lag behind the main loop.

Fixes #120.

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (d7592cd) 73.55% compared to head (364e5c9) 73.55%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #128 +/- ## ======================================= Coverage 73.55% 73.55% ======================================= Files 52 52 Lines 9614 9614 Branches 2345 2345 ======================================= Hits 7072 7072 Misses 1221 1221 Partials 1321 1321 ```

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