lambda_ethereum_consensus
lambda_ethereum_consensus copied to clipboard
Make tests run without --no-start
Currently we have different configuration categories:
- mode: db vs full.
:dbdoesn't enable the metadata genserver, the beacon api or the beacon node, which contains the fork choice genserver, libp2p features, the beacon chain genserver, etc. - genesis_strategy: were to get the first state from: checkpoint sync, a .ssz file, or the db.
Unit tests are mostly functional, and run with --no-start, so they currently patch interactions with the beacon chain so that libp2p doesn't activate, sync with others in a public network, etc. However, the client is configurable enough for us to be able to run the actual node in the tests and avoid patching and mocking behavior. In that way we both should increase coverage and stop hiding errors in tests.