multi: thread context through DeletePayments

This commit is contained in:
ziggie committed 2026-02-25 08:02:19 +01:00
1 parent bc15d4bb50
commit 563a2ac9d3
6 files changed
+19 -14

No files matched your search

+4 -2
View File
@@ -30,6 +30,8 @@ import (
func TestKVStoreDeleteNonInFlight(t *testing.T) {
t.Parallel()
ctx := t.Context()
paymentDB := NewKVTestDB(t)
// Create a sequence number for duplicate payments that will not collide
@@ -180,7 +182,7 @@ func TestKVStoreDeleteNonInFlight(t *testing.T) {
}
// Delete all failed payments.
numPayments, err := paymentDB.DeletePayments(true, false)
numPayments, err := paymentDB.DeletePayments(ctx, true, false)
require.NoError(t, err)
require.EqualValues(t, 1, numPayments)
@@ -216,7 +218,7 @@ func TestKVStoreDeleteNonInFlight(t *testing.T) {
}
// Now delete all payments except in-flight.
numPayments, err = paymentDB.DeletePayments(false, false)
numPayments, err = paymentDB.DeletePayments(ctx, false, false)
require.NoError(t, err)
require.EqualValues(t, 2, numPayments)