ledgerwatch / erigon-lib

Dependencies of Erigon project, rewritten from scratch and licensed under Apache 2.0
Apache License 2.0
59 stars 93 forks source link

Setup for stateful test of txpool #981

Open jomuel opened 1 year ago

jomuel commented 1 year ago

Remaining rules to draw input data and model txpool's behavior will be added in the next PR.

AskAlexSharov commented 1 year ago

@jomuel hi. need to merge "main" and run make test

AlexeyAkhunov commented 1 year ago

I think you need to do cleanup for db transactions (Rollback) and the databases (Close) using defer otherwise the tests hit the limit of open RO transactions. Also, it is better to create temporary directories using functions of the type testing.T, because these are automatically cleaned up on exit