Module solana_local_cluster::integration_tests
source · Expand description
Code used by the integration tests in the local-cluster/tests
folder.
According to the cargo documentation, integration tests are compiled as individual crates.
https://doc.rust-lang.org/book/ch11-03-test-organization.html#the-tests-directory
Putting shared code into the tests/
folder, causes it to be recompiled for every test, rather
than being compiled once when it is part of the main crate. And, at the same time, unused code
analysis is broken, as it is literally included. If a shared function is not used in one of the
integration tests, it will be flagged as unused, when compiling this test crate.
Structs§
Constants§
Functions§
- Copy blocks from
source
blockstore todest
blockstore Setis_trusted
to avoid sanity checks typically performed by Blockstore::insert_shreds() - Computes the numbr of milliseconds
num_blocks
blocks will take given each slot containsticks_per_slot
- This function runs a network, initiates a partition based on a configuration, resolve the partition, then checks that the network continues to achieve consensus
- Waits roughly 10 seconds for duplicate proof to appear in blockstore at
dup_slot
. Returns proof if found.