Skip to content

Commit

Permalink
Correct some pub'ness of functions in functional_tests.rs
Browse files Browse the repository at this point in the history
e41e756 started exposing some
tests but left some functions as non-pub that were now pub (though
it doesn't actually matter as we expose the function pointers
directly via `inventory).
  • Loading branch information
TheBlueMatt committed Mar 4, 2025
1 parent 4e9280c commit 0dc91d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lightning/src/ln/functional_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2899,7 +2899,7 @@ pub fn claim_htlc_outputs() {
//
// This is a regression test for https://github.com/lightningdevkit/rust-lightning/issues/3537.
#[xtest(feature = "_externalize_tests")]
fn test_multiple_package_conflicts() {
pub fn test_multiple_package_conflicts() {
let chanmon_cfgs = create_chanmon_cfgs(3);
let node_cfgs = create_node_cfgs(3, &chanmon_cfgs);
let mut user_cfg = test_default_channel_config();
Expand Down Expand Up @@ -5047,7 +5047,7 @@ pub fn test_static_spendable_outputs_timeout_tx() {
check_spends!(spend_txn[2], node_txn[0], commitment_tx[0]); // All outputs
}

pub fn do_test_static_spendable_outputs_justice_tx_revoked_commitment_tx(split_tx: bool) {
fn do_test_static_spendable_outputs_justice_tx_revoked_commitment_tx(split_tx: bool) {
let chanmon_cfgs = create_chanmon_cfgs(2);
let node_cfgs = create_node_cfgs(2, &chanmon_cfgs);
let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[None, None]);
Expand Down Expand Up @@ -10603,7 +10603,7 @@ pub fn test_max_dust_htlc_exposure() {
}

#[xtest(feature = "_externalize_tests")]
fn test_nondust_htlc_excess_fees_are_dust() {
pub fn test_nondust_htlc_excess_fees_are_dust() {
// Test that the excess transaction fees paid in nondust HTLCs count towards our dust limit
const DEFAULT_FEERATE: u32 = 253;
const HIGH_FEERATE: u32 = 275;
Expand Down Expand Up @@ -11943,7 +11943,7 @@ pub fn test_manual_funding_abandon() {
}

#[xtest(feature = "_externalize_tests")]
fn test_funding_signed_event() {
pub fn test_funding_signed_event() {
let mut cfg = UserConfig::default();
cfg.channel_handshake_config.minimum_depth = 1;
let chanmon_cfgs = create_chanmon_cfgs(2);
Expand Down

0 comments on commit 0dc91d5

Please sign in to comment.