Skip to content

Commit 23a53ee

Browse files
committed
liquidity: test move p2wkh to const
1 parent 58a93ad commit 23a53ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

liquidity/autoloop_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import (
1717
"github.com/stretchr/testify/require"
1818
)
1919

20+
const p2wkhAddr = "bcrt1qq68r6ff4k4pjx39efs44gcyccf7unqnu5qtjjz"
21+
2022
// TestAutoLoopDisabled tests the case where we need to perform a swap, but
2123
// autoloop is not enabled.
2224
func TestAutoLoopDisabled(t *testing.T) {
@@ -335,7 +337,6 @@ func TestAutoloopAddress(t *testing.T) {
335337

336338
// Decode a dummy p2wkh address to use as the destination address for
337339
// the swaps.
338-
p2wkhAddr := "bcrt1qq68r6ff4k4pjx39efs44gcyccf7unqnu5qtjjz"
339340
addr, err := btcutil.DecodeAddress(p2wkhAddr, nil)
340341
if err != nil {
341342
t.Error(err)
@@ -1260,7 +1261,6 @@ func TestEasyAutoloop(t *testing.T) {
12601261

12611262
// Decode a dummy p2wkh address to use as the destination address for
12621263
// the swaps.
1263-
p2wkhAddr := "bcrt1qq68r6ff4k4pjx39efs44gcyccf7unqnu5qtjjz"
12641264
addr, err := btcutil.DecodeAddress(p2wkhAddr, nil)
12651265
if err != nil {
12661266
t.Error(err)

0 commit comments

Comments
 (0)