Add more unit tests for the priority mempool.#8961
Conversation
creachadair
commented
Jul 7, 2022
- Add a test for time-based (TTL) expiration.
- Add a test for eviction priority.
- Add a test for time-based (TTL) expiration. - Add a test for eviction priority.
williambanfield
left a comment
There was a problem hiding this comment.
These look great. The thing I'm most worried about test-wise is the size x priority eviction logic. Are you planning to add that in a follow up PR?
Yeah. There are a couple tests for the reaping logic, but I think there are a couple more cases we should add. I could do them in this PR if you'd prefer, I mostly wanted to keep the chunks smaller for review. Edit to add: Or is that not what you meant? |
Either is fine, just want to make sure that it's on your radar. |
Per our offline discussion—I've added a few more cases to hit what I hope you had in mind. Please let me know if there are other cases you think are worth testing. |