@@ -65,7 +65,7 @@ func TestLoopOutSuccess(t *testing.T) {
6565 signalPrepaymentResult := ctx .AssertPaid (prepayInvoiceDesc )
6666
6767 // Expect client to register for conf.
68- confIntent := ctx .AssertRegisterConf (false , req .HtlcConfirmations )
68+ confIntent := ctx .Context . AssertRegisterConf (false , req .HtlcConfirmations )
6969
7070 testLoopOutSuccess (ctx , testRequest .Amount , info .SwapHash ,
7171 signalPrepaymentResult , signalSwapPaymentResult , false ,
@@ -89,7 +89,7 @@ func TestLoopOutFailOffchain(t *testing.T) {
8989 signalSwapPaymentResult := ctx .AssertPaid (swapInvoiceDesc )
9090 signalPrepaymentResult := ctx .AssertPaid (prepayInvoiceDesc )
9191
92- ctx .AssertRegisterConf (false , defaultConfirmations )
92+ ctx .Context . AssertRegisterConf (false , defaultConfirmations )
9393
9494 signalSwapPaymentResult (
9595 errors .New (lndclient .PaymentResultUnknownPaymentHash ),
@@ -274,7 +274,9 @@ func testLoopOutResume(t *testing.T, confs uint32, expired, preimageRevealed,
274274 signalPrepaymentResult := ctx .AssertPaid (prepayInvoiceDesc )
275275
276276 // Expect client to register for our expected number of confirmations.
277- confIntent := ctx .AssertRegisterConf (preimageRevealed , int32 (confs ))
277+ confIntent := ctx .Context .AssertRegisterConf (
278+ preimageRevealed , int32 (confs ),
279+ )
278280
279281 htlc , err := GetHtlc (
280282 hash , & pendingSwap .Contract .SwapContract ,
@@ -325,7 +327,7 @@ func testLoopOutSuccess(ctx *testContext, amt btcutil.Amount, hash lntypes.Hash,
325327
326328 // Expect a signing request in the non taproot case.
327329 if scriptVersion != swap .HtlcV3 {
328- <- ctx .Lnd .SignOutputRawChannel
330+ <- ctx .Context . Lnd .SignOutputRawChannel
329331 }
330332
331333 if ! preimageRevealed {
@@ -345,14 +347,14 @@ func testLoopOutSuccess(ctx *testContext, amt btcutil.Amount, hash lntypes.Hash,
345347 ctx .expiryChan <- testTime
346348 ctx .assertPreimagePush (testPreimage )
347349 }
348- <- ctx .Lnd .SignOutputRawChannel
350+ <- ctx .Context . Lnd .SignOutputRawChannel
349351 }
350352
351353 // Expect client on-chain sweep of HTLC.
352354 sweepTx := ctx .ReceiveTx ()
353355
354356 require .Equal (
355- ctx .T , htlcOutpoint .Hash [:],
357+ ctx .Context . T , htlcOutpoint .Hash [:],
356358 sweepTx .TxIn [0 ].PreviousOutPoint .Hash [:],
357359 "client not sweeping from htlc tx" ,
358360 )
@@ -369,12 +371,12 @@ func testLoopOutSuccess(ctx *testContext, amt btcutil.Amount, hash lntypes.Hash,
369371 // Check preimage.
370372 clientPreImage := sweepTx .TxIn [0 ].Witness [preImageIndex ]
371373 clientPreImageHash := sha256 .Sum256 (clientPreImage )
372- require .Equal (ctx .T , hash , lntypes .Hash (clientPreImageHash ))
374+ require .Equal (ctx .Context . T , hash , lntypes .Hash (clientPreImageHash ))
373375
374376 // Since we successfully published our sweep, we expect the preimage to
375377 // have been pushed to our mock server.
376378 preimage , err := lntypes .MakePreimage (clientPreImage )
377- require .NoError (ctx .T , err )
379+ require .NoError (ctx .Context . T , err )
378380
379381 if scriptVersion != swap .HtlcV3 {
380382 ctx .assertPreimagePush (preimage )
0 commit comments