mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-24 12:44:34 +02:00
paymentsdb: rename db agnostic tests to highlight their behaviour
This commit is contained in:
@@ -466,8 +466,8 @@ func testDeleteFailedAttempts(t *testing.T, keepFailedPaymentAttempts bool) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestKVPaymentsDBMPPRecordValidation tests MPP record validation.
|
// TestMPPRecordValidation tests MPP record validation.
|
||||||
func TestKVPaymentsDBMPPRecordValidation(t *testing.T) {
|
func TestMPPRecordValidation(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
paymentDB := NewTestDB(t)
|
paymentDB := NewTestDB(t)
|
||||||
@@ -1181,9 +1181,9 @@ func TestEmptyRoutesGenerateSphinxPacket(t *testing.T) {
|
|||||||
require.ErrorIs(t, err, route.ErrNoRouteHopsProvided)
|
require.ErrorIs(t, err, route.ErrNoRouteHopsProvided)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestKVPaymentsDBSuccessesWithoutInFlight tests that the payment control will
|
// TestSuccessesWithoutInFlight tests that the payment control will disallow
|
||||||
// disallow calls to Success when no payment is in flight.
|
// calls to Success when no payment is in flight.
|
||||||
func TestKVPaymentsDBSuccessesWithoutInFlight(t *testing.T) {
|
func TestSuccessesWithoutInFlight(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
paymentDB := NewTestDB(t)
|
paymentDB := NewTestDB(t)
|
||||||
@@ -1201,9 +1201,9 @@ func TestKVPaymentsDBSuccessesWithoutInFlight(t *testing.T) {
|
|||||||
require.ErrorIs(t, err, ErrPaymentNotInitiated)
|
require.ErrorIs(t, err, ErrPaymentNotInitiated)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestKVPaymentsDBFailsWithoutInFlight checks that a strict payment control
|
// TestFailsWithoutInFlight checks that a strict payment control will disallow
|
||||||
// will disallow calls to Fail when no payment is in flight.
|
// calls to Fail when no payment is in flight.
|
||||||
func TestKVPaymentsDBFailsWithoutInFlight(t *testing.T) {
|
func TestFailsWithoutInFlight(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
paymentDB := NewTestDB(t)
|
paymentDB := NewTestDB(t)
|
||||||
@@ -1218,9 +1218,9 @@ func TestKVPaymentsDBFailsWithoutInFlight(t *testing.T) {
|
|||||||
require.ErrorIs(t, err, ErrPaymentNotInitiated)
|
require.ErrorIs(t, err, ErrPaymentNotInitiated)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestKVPaymentsDBDeletePayments tests that DeletePayments correctly deletes
|
// TestDeletePayments tests that DeletePayments correctly deletes information
|
||||||
// information about completed payments from the database.
|
// about completed payments from the database.
|
||||||
func TestKVPaymentsDBDeletePayments(t *testing.T) {
|
func TestDeletePayments(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
paymentDB := NewTestDB(t)
|
paymentDB := NewTestDB(t)
|
||||||
|
Reference in New Issue
Block a user