Skip to content

Commit 0dc91d5

Browse files
committed
Correct some pub'ness of functions in functional_tests.rs
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).
1 parent 4e9280c commit 0dc91d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/ln/functional_tests.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -2899,7 +2899,7 @@ pub fn claim_htlc_outputs() {
28992899
//
29002900
// This is a regression test for https://github.com/lightningdevkit/rust-lightning/issues/3537.
29012901
#[xtest(feature = "_externalize_tests")]
2902-
fn test_multiple_package_conflicts() {
2902+
pub fn test_multiple_package_conflicts() {
29032903
let chanmon_cfgs = create_chanmon_cfgs(3);
29042904
let node_cfgs = create_node_cfgs(3, &chanmon_cfgs);
29052905
let mut user_cfg = test_default_channel_config();
@@ -5047,7 +5047,7 @@ pub fn test_static_spendable_outputs_timeout_tx() {
50475047
check_spends!(spend_txn[2], node_txn[0], commitment_tx[0]); // All outputs
50485048
}
50495049

5050-
pub fn do_test_static_spendable_outputs_justice_tx_revoked_commitment_tx(split_tx: bool) {
5050+
fn do_test_static_spendable_outputs_justice_tx_revoked_commitment_tx(split_tx: bool) {
50515051
let chanmon_cfgs = create_chanmon_cfgs(2);
50525052
let node_cfgs = create_node_cfgs(2, &chanmon_cfgs);
50535053
let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[None, None]);
@@ -10603,7 +10603,7 @@ pub fn test_max_dust_htlc_exposure() {
1060310603
}
1060410604

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

1194511945
#[xtest(feature = "_externalize_tests")]
11946-
fn test_funding_signed_event() {
11946+
pub fn test_funding_signed_event() {
1194711947
let mut cfg = UserConfig::default();
1194811948
cfg.channel_handshake_config.minimum_depth = 1;
1194911949
let chanmon_cfgs = create_chanmon_cfgs(2);

0 commit comments

Comments
 (0)