vacp2p / nim-libp2p

libp2p implementation in Nim
https://vacp2p.github.io/nim-libp2p/docs/
MIT License
251 stars 55 forks source link

use new Chronos `trackCounter` APIs for leaks checks in tests #1038

Closed etan-status closed 8 months ago

etan-status commented 8 months ago

The previous addTracker / getTracker Chronos APIs were deprecated. Switch to their equivalent new APIs which need less manual management.

codecov[bot] commented 8 months ago

Codecov Report

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

Project coverage is 82.80%. Comparing base (6c87348) to head (c1efdac).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/status-im/nim-libp2p/pull/1038/graphs/tree.svg?width=650&height=150&src=pr&token=UR5JRQ249W&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=status-im)](https://app.codecov.io/gh/status-im/nim-libp2p/pull/1038?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=status-im) ```diff @@ Coverage Diff @@ ## unstable #1038 +/- ## ============================================ + Coverage 82.77% 82.80% +0.02% ============================================ Files 91 91 Lines 15604 15564 -40 ============================================ - Hits 12916 12887 -29 + Misses 2688 2677 -11 ``` | [Files](https://app.codecov.io/gh/status-im/nim-libp2p/pull/1038?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=status-im) | Coverage Δ | | |---|---|---| | [libp2p/stream/lpstream.nim](https://app.codecov.io/gh/status-im/nim-libp2p/pull/1038?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=status-im#diff-bGlicDJwL3N0cmVhbS9scHN0cmVhbS5uaW0=) | `83.23% <100.00%> (-0.19%)` | :arrow_down: | | [libp2p/transports/tcptransport.nim](https://app.codecov.io/gh/status-im/nim-libp2p/pull/1038?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=status-im#diff-bGlicDJwL3RyYW5zcG9ydHMvdGNwdHJhbnNwb3J0Lm5pbQ==) | `80.58% <100.00%> (-0.47%)` | :arrow_down: | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/status-im/nim-libp2p/pull/1038/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=status-im)