Skip to content

Commit 89fb5a3

Browse files
authored
Merge pull request #2577 from TheBlueMatt/2023-09-msrv
Fix MSRV tests and drop internet-required test
2 parents cd16cdd + ba12a86 commit 89fb5a3

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

ci/ci-tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ PIN_RELEASE_DEPS # pin the release dependencies in our main workspace
2929
# The quote crate switched to Rust edition 2021 starting with v1.0.31, i.e., has MSRV of 1.56
3030
[ "$RUSTC_MINOR_VERSION" -lt 56 ] && cargo update -p quote --precise "1.0.30" --verbose
3131

32+
# The syn crate depends on too-new proc-macro2 starting with v2.0.33, i.e., has MSRV of 1.56
33+
[ "$RUSTC_MINOR_VERSION" -lt 56 ] && cargo update -p syn:2.0.33 --precise "2.0.32" --verbose
34+
3235
# The proc-macro2 crate switched to Rust edition 2021 starting with v1.0.66, i.e., has MSRV of 1.56
3336
[ "$RUSTC_MINOR_VERSION" -lt 56 ] && cargo update -p proc-macro2 --precise "1.0.65" --verbose
3437

@@ -120,6 +123,10 @@ if [[ $RUSTC_MINOR_VERSION -gt 67 ]]; then
120123
# lightning-transaction-sync's MSRV is 1.67
121124
cargo check --verbose --color always --features lightning-transaction-sync
122125
else
126+
# The memchr crate switched to an MSRV of 1.60 starting with v2.6.0
127+
# This is currently only a release dependency via core2, which we intend to work with
128+
# rust-bitcoin to remove soon.
129+
[ "$RUSTC_MINOR_VERSION" -lt 60 ] && cargo update -p memchr --precise "2.5.0" --verbose
123130
cargo check --verbose --color always
124131
fi
125132
popd

lightning-transaction-sync/tests/integration_tests.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -321,20 +321,3 @@ async fn test_esplora_syncs() {
321321
_ => panic!("Unexpected event"),
322322
}
323323
}
324-
325-
#[tokio::test]
326-
#[cfg(any(feature = "esplora-async-https", feature = "esplora-blocking"))]
327-
async fn test_esplora_connects_to_public_server() {
328-
let mut logger = TestLogger {};
329-
let esplora_url = "https://blockstream.info/api".to_string();
330-
let tx_sync = EsploraSyncClient::new(esplora_url, &mut logger);
331-
let confirmable = TestConfirmable::new();
332-
333-
// Check we connect and pick up on new best blocks
334-
assert_eq!(confirmable.best_block.lock().unwrap().1, 0);
335-
#[cfg(feature = "esplora-async-https")]
336-
tx_sync.sync(vec![&confirmable]).await.unwrap();
337-
#[cfg(feature = "esplora-blocking")]
338-
tx_sync.sync(vec![&confirmable]).unwrap();
339-
assert_ne!(confirmable.best_block.lock().unwrap().1, 0);
340-
}

0 commit comments

Comments
 (0)