Ignore longer sync tests by default

This commit is contained in:
teor 2020-10-20 19:55:11 +10:00
parent 0d121833af
commit e52a1c07a3
1 changed files with 7 additions and 1 deletions

View File

@ -482,7 +482,11 @@ fn sync_one_checkpoint_testnet() -> Result<()> {
/// Test if `zebrad` can sync the second checkpoint on mainnet.
///
/// The second checkpoint contains a large number of blocks.
/// This test might fail or timeout on slow or unreliable networks,
/// so we don't run it by default. It also takes a lot longer than
/// our 10 second target time for default tests.
#[test]
#[ignore]
fn sync_two_checkpoints_mainnet() -> Result<()> {
sync_until(
"verified checkpoint range block_count=2000",
@ -493,8 +497,10 @@ fn sync_two_checkpoints_mainnet() -> Result<()> {
/// Test if `zebrad` can sync the second checkpoint on testnet.
///
/// The second checkpoint contains a large number of blocks.
/// This test does not run by default, see `sync_two_checkpoints_mainnet`
/// for details.
#[test]
#[ignore]
fn sync_two_checkpoints_testnet() -> Result<()> {
sync_until(
"verified checkpoint range block_count=2000",