Skip to content

Commit

Permalink
async manager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyhodl authored and bennyhodl committed Nov 20, 2024
1 parent 2ba6b52 commit 404cf82
Show file tree
Hide file tree
Showing 4 changed files with 965 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
push:
branches:
- master
- 'testci/**'
- "testci/**"
pull_request:

name: Continuous integration
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
components: rustfmt
- name: Check format
run: cargo fmt --all --check
no-std:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
key: test-cache-${{ github.run_id }}-${{ github.run_number }}
- uses: actions/checkout@v4
- id: set-matrix
run: cargo test --no-run && echo "::set-output name=matrix::$(scripts/get_test_list.sh execution manager channel_execution)"
run: cargo test --all-features --no-run && cargo test --no-run && echo "::set-output name=matrix::$(scripts/get_test_list.sh manager async_manager channel_execution)"
integration_tests:
name: integration-tests
needs: integration_tests_prepare
Expand Down
3 changes: 2 additions & 1 deletion dlc-manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ std = ["dlc/std", "dlc-messages/std", "dlc-trie/std", "bitcoin/std", "lightning/
fuzztarget = ["rand_chacha"]
parallel = ["dlc-trie/parallel"]
use-serde = ["serde", "dlc/use-serde", "dlc-messages/use-serde", "dlc-trie/use-serde"]
async = ["dep:async-trait"]
async = ["dep:async-trait", "mocks/async"]

[dependencies]
async-trait = { version = "0.1.50", optional = true }
Expand Down Expand Up @@ -46,6 +46,7 @@ secp256k1-zkp = {version = "0.11.0", features = ["hashes", "rand", "rand-std", "
serde = "1.0"
serde_json = "1.0"
simple-wallet = {path = "../simple-wallet"}
tokio = { version = "1.41.1", features = ["macros", "test-util", "rt-multi-thread"] }

[[bench]]
harness = false
Expand Down
Loading

0 comments on commit 404cf82

Please sign in to comment.