Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix
TestTxPool_ExpiredTxs_Timestamp
flake (#1573)
## Description Closes #1207 ## Rationale After a lot of trial and errors and some research, the rationale behind this change of flaky test is: Because the TTL is 5ms which is very short, we need to have a more precise pruning interval to ensure that the transactions are expired, so that the expired event is caught quickly enough, while the second batch of transactions are not expired to prevent flaky behaviors. ## Testing method ```go test -run TestTxPool_ExpiredTxs_Timestamp github.com/tendermint/tendermint/mempool/cat -mod=readonly -race -count 100``` I run this command 200 times and see no failing one, which is kind of reliable compare to failing rate of 15-20% of old implemetation --- #### PR checklist - [x] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments
- Loading branch information