Skip to content

Commit

Permalink
expose one functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
devrandom committed Apr 25, 2024
1 parent 93c0c50 commit 15e7493
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions lightning/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ backtrace = { version = "0.3", optional = true }
core2 = { version = "0.3.0", optional = true, default-features = false }
libm = { version = "0.2", optional = true, default-features = false }
delegate = "0.12.0"
ext-test-macro = { path = "../ext-test-macro" }

[dev-dependencies]
regex = "1.5.6"
Expand Down
5 changes: 3 additions & 2 deletions lightning/src/ln/functional_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@ use alloc::collections::BTreeSet;
use core::iter::repeat;
use bitcoin::hashes::Hash;
use crate::sync::{Arc, Mutex, RwLock};
use ext_test_macro::xtest;

use crate::ln::functional_test_utils::*;
use crate::ln::chan_utils::CommitmentTransaction;

use super::channel::UNFUNDED_CHANNEL_AGE_LIMIT_TICKS;

#[test]
fn test_insane_channel_opens() {
#[xtest(feature = "_test_utils")]
pub fn test_insane_channel_opens() {
// Stand up a network of 2 nodes
use crate::ln::channel::TOTAL_BITCOIN_SUPPLY_SATOSHIS;
let mut cfg = UserConfig::default();
Expand Down
2 changes: 1 addition & 1 deletion lightning/src/ln/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub use onion_utils::create_payment_onion;
#[cfg(test)]
#[allow(unused_mut)]
mod blinded_payment_tests;
#[cfg(test)]
#[cfg(any(test, feature = "_test_utils"))]
#[allow(unused_mut)]
mod functional_tests;
#[cfg(test)]
Expand Down

0 comments on commit 15e7493

Please sign in to comment.