invoices/test: remove duplicate test invoice amount global

We have testInvoiceAmt and testInvoiceAmount with the same value.
This commit is contained in:
Carla Kirk-Cohen committed 2023-07-24 10:54:01 -04:00
1 parent 40f695743a
commit d080d07a22
2 files changed
+9 -11

No files matched your search

+2 -4
View File
@@ -132,12 +132,10 @@ var (
)
var (
testInvoiceAmt = lnwire.MilliSatoshi(100000)
testPayAddrReqInvoice = &invpkg.Invoice{
Terms: invpkg.ContractTerm{
PaymentPreimage: &testInvoicePreimage,
Value: testInvoiceAmt,
Value: testInvoiceAmount,
Expiry: time.Hour,
Features: lnwire.NewFeatureVector(
lnwire.NewRawFeatureVector(
@@ -249,7 +247,7 @@ func getCircuitKey(htlcID uint64) invpkg.CircuitKey {
func newInvoice(t *testing.T, hodl bool) *invpkg.Invoice {
invoice := &invpkg.Invoice{
Terms: invpkg.ContractTerm{
Value: testInvoiceAmt,
Value: testInvoiceAmount,
Expiry: time.Hour,
Features: testFeatures.Clone(),
},