Revert "Disable unreliable `sync_large_checkpoints_testnet` (#1789)"

This reverts commit bae49e54df.
This commit is contained in:
teor 2021-03-10 08:37:54 +10:00 committed by Deirdre Connolly
parent e50692bd51
commit ac4611ffc4
1 changed files with 16 additions and 2 deletions

View File

@ -745,8 +745,22 @@ fn sync_large_checkpoints_mainnet() -> Result<()> {
Ok(())
}
// Todo: We had a `sync_large_checkpoints_testnet` here but it was removed because
// the testnet is unreliable(#1222). Enable after we have more testnet instances(#1791).
/// Test if `zebrad` can sync some larger checkpoints on testnet.
///
/// This test does not run by default, see `sync_large_checkpoints_mainnet`
/// for details.
#[test]
#[ignore]
fn sync_large_checkpoints_testnet() -> Result<()> {
sync_until(
LARGE_CHECKPOINT_TEST_HEIGHT,
Testnet,
STOP_AT_HEIGHT_REGEX,
LARGE_CHECKPOINT_TIMEOUT,
None,
)
.map(|_tempdir| ())
}
/// Sync `network` until `zebrad` reaches `height`, and ensure that
/// the output contains `stop_regex`. If `reuse_tempdir` is supplied,