From 56bf3027144b4fa6ce9586d3d249b275acb7bcce Mon Sep 17 00:00:00 2001 From: tdb3 <106488469+tdb3@users.noreply.github.com> Date: Sun, 6 Oct 2024 15:37:45 -0400 Subject: [PATCH] refactor: rename rpc_getorphantxs to rpc_orphans Generalizes the test to accommodate additional orphan-related RPCs --- test/functional/{rpc_getorphantxs.py => rpc_orphans.py} | 6 +++--- test/functional/test_runner.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename test/functional/{rpc_getorphantxs.py => rpc_orphans.py} (98%) diff --git a/test/functional/rpc_getorphantxs.py b/test/functional/rpc_orphans.py similarity index 98% rename from test/functional/rpc_getorphantxs.py rename to test/functional/rpc_orphans.py index b905d54954e..802580bc7cc 100755 --- a/test/functional/rpc_getorphantxs.py +++ b/test/functional/rpc_orphans.py @@ -2,7 +2,7 @@ # Copyright (c) 2014-2024 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. -"""Test the getorphantxs RPC.""" +"""Tests for orphan related RPCs.""" from test_framework.mempool_util import tx_in_orphanage from test_framework.messages import msg_tx @@ -15,7 +15,7 @@ from test_framework.test_framework import BitcoinTestFramework from test_framework.wallet import MiniWallet -class GetOrphanTxsTest(BitcoinTestFramework): +class OrphanRPCsTest(BitcoinTestFramework): def set_test_params(self): self.num_nodes = 1 @@ -138,4 +138,4 @@ class GetOrphanTxsTest(BitcoinTestFramework): if __name__ == '__main__': - GetOrphanTxsTest(__file__).main() + OrphanRPCsTest(__file__).main() diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py index 3d8c2300663..dc9053491cc 100755 --- a/test/functional/test_runner.py +++ b/test/functional/test_runner.py @@ -160,7 +160,7 @@ BASE_SCRIPTS = [ 'wallet_importmulti.py --legacy-wallet', 'mempool_limit.py', 'rpc_txoutproof.py', - 'rpc_getorphantxs.py', + 'rpc_orphans.py', 'wallet_listreceivedby.py --legacy-wallet', 'wallet_listreceivedby.py --descriptors', 'wallet_abandonconflict.py --legacy-wallet',