From d2ab35629a9f88f602982fce726016dd24fde419 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Thu, 25 Jan 2024 23:33:32 +0800 Subject: [PATCH] lnwallet/test: fix ZMQ format --- lnwallet/test/test_interface.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lnwallet/test/test_interface.go b/lnwallet/test/test_interface.go index 75926872a..0770e8822 100644 --- a/lnwallet/test/test_interface.go +++ b/lnwallet/test/test_interface.go @@ -3259,9 +3259,15 @@ func runTests(t *testing.T, walletDriver *lnwallet.WalletDriver, case "bitcoind": // Start a bitcoind instance. tempBitcoindDir := t.TempDir() - zmqBlockHost := "ipc:///" + tempBitcoindDir + "/blocks.socket" - zmqTxHost := "ipc:///" + tempBitcoindDir + "/tx.socket" + rpcPort := getFreePort() + zmqBlockPort := getFreePort() + zmqTxPort := getFreePort() + zmqBlockHost := fmt.Sprintf("tcp://127.0.0.1:%d", + zmqBlockPort) + zmqTxHost := fmt.Sprintf("tcp://127.0.0.1:%d", + zmqTxPort) + bitcoind := exec.Command( "bitcoind", "-datadir="+tempBitcoindDir,