tests: Fix LTC wallet creation.

This commit is contained in:
tecnovert
2025-05-11 12:01:37 +02:00
parent 80915d9865
commit 3ea7a219d1
2 changed files with 4 additions and 13 deletions

View File

@@ -662,9 +662,9 @@ class Test(BaseTest):
offer_id = swap_clients[0].postOffer( offer_id = swap_clients[0].postOffer(
Coins.BTC, Coins.BTC,
Coins.LTC, Coins.LTC,
0.001 * COIN, 0.01 * COIN,
1.0 * COIN, 1.0 * COIN,
0.001 * COIN, 0.01 * COIN,
SwapTypes.SELLER_FIRST, SwapTypes.SELLER_FIRST,
) )
@@ -692,17 +692,8 @@ class Test(BaseTest):
def test_08_part_ltc_buyer_first(self): def test_08_part_ltc_buyer_first(self):
logging.info("---------- Test PART to LTC, buyer first") logging.info("---------- Test PART to LTC, buyer first")
swap_clients = self.swap_clients
swap_clients[0].postOffer(
Coins.PART,
Coins.LTC,
100 * COIN,
0.1 * COIN,
100 * COIN,
SwapTypes.BUYER_FIRST,
)
# SwapTypes.BUYER_FIRST
logging.warning("TODO") logging.warning("TODO")
def test_09_part_ltc_auto_accept(self): def test_09_part_ltc_auto_accept(self):

View File

@@ -561,7 +561,7 @@ class BaseTest(unittest.TestCase):
base_p2p_port=LTC_BASE_PORT, base_p2p_port=LTC_BASE_PORT,
base_rpc_port=LTC_BASE_RPC_PORT, base_rpc_port=LTC_BASE_RPC_PORT,
) )
if os.path.exists( if not os.path.exists(
os.path.join(cfg.LITECOIN_BINDIR, ltc_wallet_bin) os.path.join(cfg.LITECOIN_BINDIR, ltc_wallet_bin)
): ):
logging.warning(f"{ltc_wallet_bin} not found.") logging.warning(f"{ltc_wallet_bin} not found.")