erigontech / erigon

Ethereum implementation on the efficiency frontier https://erigon.gitbook.io
GNU Lesser General Public License v3.0
3.1k stars 1.09k forks source link

Fix duplication in `bridge_test.go` #11847

Open shohamc1 opened 1 week ago

shohamc1 commented 1 week ago

Remove duplication in bridge_test file. Most test cases (other than unwind) follow the same pattern and just differ in the verification.

We can implement a table driven test similar to TestBlockDownloaderDownloadBlocksRespectsBlockLimit.