@@ -148,7 +148,7 @@ func createTestPayments(t *testing.T, p DB, payments []*payment) {
148148
149149 htlcFailure := HTLCFailUnreadable
150150 _ , err = p .FailAttempt (
151- info .PaymentIdentifier , attempt .AttemptID ,
151+ ctx , info .PaymentIdentifier , attempt .AttemptID ,
152152 & HTLCFailInfo {
153153 Reason : htlcFailure ,
154154 },
@@ -175,7 +175,7 @@ func createTestPayments(t *testing.T, p DB, payments []*payment) {
175175 case StatusFailed :
176176 htlcFailure := HTLCFailUnreadable
177177 _ , err = p .FailAttempt (
178- info .PaymentIdentifier , attempt .AttemptID ,
178+ ctx , info .PaymentIdentifier , attempt .AttemptID ,
179179 & HTLCFailInfo {
180180 Reason : htlcFailure ,
181181 },
@@ -1579,7 +1579,7 @@ func TestSwitchFail(t *testing.T) {
15791579
15801580 htlcReason := HTLCFailUnreadable
15811581 _ , err = paymentDB .FailAttempt (
1582- info .PaymentIdentifier , attempt .AttemptID ,
1582+ ctx , info .PaymentIdentifier , attempt .AttemptID ,
15831583 & HTLCFailInfo {
15841584 Reason : htlcReason ,
15851585 },
@@ -1763,7 +1763,7 @@ func TestMultiShard(t *testing.T) {
17631763 a := attempts [1 ]
17641764 htlcFail := HTLCFailUnreadable
17651765 _ , err = paymentDB .FailAttempt (
1766- info .PaymentIdentifier , a .AttemptID ,
1766+ ctx , info .PaymentIdentifier , a .AttemptID ,
17671767 & HTLCFailInfo {
17681768 Reason : htlcFail ,
17691769 },
@@ -1812,7 +1812,7 @@ func TestMultiShard(t *testing.T) {
18121812 )
18131813 } else {
18141814 _ , err := paymentDB .FailAttempt (
1815- info .PaymentIdentifier , a .AttemptID ,
1815+ ctx , info .PaymentIdentifier , a .AttemptID ,
18161816 & HTLCFailInfo {
18171817 Reason : htlcFail ,
18181818 },
@@ -1903,7 +1903,7 @@ func TestMultiShard(t *testing.T) {
19031903 } else {
19041904 // Fail the attempt.
19051905 _ , err := paymentDB .FailAttempt (
1906- info .PaymentIdentifier , a .AttemptID ,
1906+ ctx , info .PaymentIdentifier , a .AttemptID ,
19071907 & HTLCFailInfo {
19081908 Reason : htlcFail ,
19091909 },
0 commit comments