liquidity: test move p2wkh to const

This commit is contained in:
sputn1ck 2025-03-10 11:48:35 -05:00
parent 98e6bf08c7
commit e7b2836605
No known key found for this signature in database
GPG key ID: 671103D881A5F0E4

View file

@ -17,6 +17,8 @@ import (
"github.com/stretchr/testify/require"
)
const p2wkhAddr = "bcrt1qq68r6ff4k4pjx39efs44gcyccf7unqnu5qtjjz"
// TestAutoLoopDisabled tests the case where we need to perform a swap, but
// autoloop is not enabled.
func TestAutoLoopDisabled(t *testing.T) {
@ -335,7 +337,6 @@ func TestAutoloopAddress(t *testing.T) {
// Decode a dummy p2wkh address to use as the destination address for
// the swaps.
p2wkhAddr := "bcrt1qq68r6ff4k4pjx39efs44gcyccf7unqnu5qtjjz"
addr, err := btcutil.DecodeAddress(p2wkhAddr, nil)
if err != nil {
t.Error(err)
@ -1260,7 +1261,6 @@ func TestEasyAutoloop(t *testing.T) {
// Decode a dummy p2wkh address to use as the destination address for
// the swaps.
p2wkhAddr := "bcrt1qq68r6ff4k4pjx39efs44gcyccf7unqnu5qtjjz"
addr, err := btcutil.DecodeAddress(p2wkhAddr, nil)
if err != nil {
t.Error(err)