From e52a1c07a3df45c30e819370f827a7eb4992feac Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 20 Oct 2020 19:55:11 +1000 Subject: [PATCH] Ignore longer sync tests by default --- zebrad/tests/acceptance.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zebrad/tests/acceptance.rs b/zebrad/tests/acceptance.rs index 5b71c6c7..0c54eb7f 100644 --- a/zebrad/tests/acceptance.rs +++ b/zebrad/tests/acceptance.rs @@ -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",