Skip to content

Rustfmt tests that touch persistence #3882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 27, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rustfmt cleanup of node ids
Script used:

git reset --hard

for file in lightning/src/ln/async_signer_tests.rs lightning/src/ln/functional_test_utils.rs lightning/src/ln/priv_short_conf_tests.rs lightning/src/ln/shutdown_tests.rs; do
    sed -i '' -E \
    -e 's/nodes\[0\]\.node.get_our_node_id\(\)/node_a_id/g' \
    -e 's/nodes\[1\]\.node.get_our_node_id\(\)/node_b_id/g' \
    -e 's/nodes\[2\]\.node.get_our_node_id\(\)/node_c_id/g' \
    -e 's/nodes\[3\]\.node.get_our_node_id\(\)/node_d_id/g' \
    -e 's/nodes\[4\]\.node.get_our_node_id\(\)/node_e_id/g' \
    -e 's/nodes\[5\]\.node.get_our_node_id\(\)/node_f_id/g' \
    -e 's/(^.*create_network\(2, .*\);)/\1\nlet node_a_id = nodes\[0\].node.get_our_node_id\(\);\nlet node_b_id = nodes\[1\].node.get_our_node_id\(\);/g' \
    -e 's/(^.*create_network\(3, .*\);)/\1\nlet node_a_id = nodes\[0\].node.get_our_node_id\(\);\nlet node_b_id = nodes\[1\].node.get_our_node_id\(\);\nlet node_c_id = nodes\[2\].node.get_our_node_id\(\);/g' \
    -e 's/(^.*create_network\(4, .*\);)/\1\nlet node_a_id = nodes\[0\].node.get_our_node_id\(\);\nlet node_b_id = nodes\[1\].node.get_our_node_id\(\);\nlet node_c_id = nodes\[2\].node.get_our_node_id\(\);\nlet node_d_id = nodes\[3\].node.get_our_node_id\(\);/g' \
    -e 's/(^.*create_network\(5, .*\);)/\1\nlet node_a_id = nodes\[0\].node.get_our_node_id\(\);\nlet node_b_id = nodes\[1\].node.get_our_node_id\(\);\nlet node_c_id = nodes\[2\].node.get_our_node_id\(\);\nlet node_d_id = nodes\[3\].node.get_our_node_id\(\);\nlet node_e_id = nodes\[4\].node.get_our_node_id\(\);/g' \
    -e 's/(^.*create_network\(6, .*\);)/\1\nlet node_a_id = nodes\[0\].node.get_our_node_id\(\);\nlet node_b_id = nodes\[1\].node.get_our_node_id\(\);\nlet node_c_id = nodes\[2\].node.get_our_node_id\(\);\nlet node_d_id = nodes\[3\].node.get_our_node_id\(\);\nlet node_e_id = nodes\[4\].node.get_our_node_id\(\);\nlet node_f_id = nodes\[5\].node.get_our_node_id\(\);/g' \
    "$file"
done

cargo +1.63.0 fmt
  • Loading branch information
joostjager committed Jun 26, 2025
commit 011ea05aad11c0adeb2cfcd8d4a11b2be7b8ccec
Loading