Skip to content

Commit

Permalink
increase lightwalletd timeout, remove testnet tests (#4584)
Browse files Browse the repository at this point in the history
* increase lightwalletd timeout

* switch back to aditya's fork

* manually point to new aditya's lightwalletd image

* disable sync_one_checkpoint_testnet test

* disable restart_stop_at_height in testnet

* rever to 'latest' lightwalletd image
  • Loading branch information
conradoplg authored and upbqdn committed Jun 14, 2022
1 parent d31fcae commit 8c2b292
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/zcash-lightwalletd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
# rebuild lightwalletd whenever the related Zebra code changes
#
# TODO: this code isn't compiled in this docker image
# rebuild whenever the actual code at zcash/lightwalletd/master changes
# rebuild whenever the actual code at lightwalletd/master changes
- 'zebra-rpc/**'
- 'zebrad/tests/acceptance.rs'
- 'zebrad/src/config.rs'
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
repository: zcash/lightwalletd
repository: adityapk00/lightwalletd
ref: 'master'
persist-credentials: false

Expand Down
7 changes: 5 additions & 2 deletions zebrad/tests/acceptance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ fn sync_one_checkpoint_mainnet() -> Result<()> {
/// Test if `zebrad` can sync the first checkpoint on testnet.
///
/// The first checkpoint contains a single genesis block.
#[test]
// TODO: disabled because testnet is not currently reliable
// #[test]
#[allow(dead_code)]
fn sync_one_checkpoint_testnet() -> Result<()> {
sync_until(
TINY_CHECKPOINT_TEST_HEIGHT,
Expand All @@ -523,7 +525,8 @@ fn restart_stop_at_height() -> Result<()> {
zebra_test::init();

restart_stop_at_height_for_network(Network::Mainnet, TINY_CHECKPOINT_TEST_HEIGHT)?;
restart_stop_at_height_for_network(Network::Testnet, TINY_CHECKPOINT_TEST_HEIGHT)?;
// TODO: disabled because testnet is not currently reliable
// restart_stop_at_height_for_network(Network::Testnet, TINY_CHECKPOINT_TEST_HEIGHT)?;

Ok(())
}
Expand Down
4 changes: 2 additions & 2 deletions zebrad/tests/common/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ pub const LIGHTWALLETD_UPDATE_TIP_DELAY: Duration = Duration::from_secs(20 * 60)

/// The amount of time we wait for lightwalletd to do a full sync to the tip.
///
/// `lightwalletd` takes about half an hour to fully sync,
/// `lightwalletd` takes about an hour to fully sync,
/// and Zebra needs time to activate its mempool.
pub const LIGHTWALLETD_FULL_SYNC_TIP_DELAY: Duration = Duration::from_secs(45 * 60);
pub const LIGHTWALLETD_FULL_SYNC_TIP_DELAY: Duration = Duration::from_secs(90 * 60);

/// Extension trait for methods on `tempfile::TempDir` for using it as a test
/// directory for `zebrad`.
Expand Down

0 comments on commit 8c2b292

Please sign in to comment.