Skip to content

Commit

Permalink
ignore test and execute singularly
Browse files Browse the repository at this point in the history
At the moment we cannot concurrently tests because the server will
conflict with each other, this make the test_electrum_raw test ignored
by default, and add a test in CI specifically for this test.
  • Loading branch information
RCasatta committed Nov 25, 2024
1 parent 1bec7b4 commit 885887a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ jobs:
- name: Tests (Bitcoin mode, REST+Electrum)
run: RUST_LOG=debug cargo test

- name: Test test_electrum_raw
run: RUST_LOG=debug cargo test -- --include-ignored test_electrum_raw

- name: Tests (Liquid mode, REST)
run: RUST_LOG=debug cargo test --features liquid


nix:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions tests/electrum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ fn test_electrum() -> Result<()> {
/// This only runs on Bitcoin (non-Liquid) mode.
#[cfg_attr(not(feature = "liquid"), test)]
#[cfg_attr(feature = "liquid", allow(dead_code))]
#[ignore = "must be launched singularly, otherwise conflict with the other server"]
fn test_electrum_raw() {
// Spawn an Electrs Electrum RPC server
let (_electrum_server, electrum_addr, mut _tester) = common::init_electrum_tester().unwrap();
Expand Down

0 comments on commit 885887a

Please sign in to comment.