Skip to content

Commit c789882

Browse files
committed
loopout: fix test wording
1 parent 11bf5ca commit c789882

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

loopout_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ func testCustomSweepConfTarget(t *testing.T) {
478478
require.Equal(t, swap.Preimage, preimage)
479479
}
480480

481-
// Now that we have pushed our preimage to the sever, we send an update
481+
// Now that we have pushed our preimage to the server, we send an update
482482
// indicating that our off chain htlc is settled. We do this so that
483483
// we don't have to keep consuming preimage pushes from our server mock
484484
// for every sweep attempt.
@@ -779,22 +779,22 @@ func testPreimagePush(t *testing.T) {
779779
require.NoError(t, <-errChan)
780780
}
781781

782-
// TestFailedOffChainCancelation tests sending of a cancelation message to
782+
// TestFailedOffChainCancellation tests sending of a cancellation message to
783783
// the server when a swap fails due to off-chain routing.
784-
func TestFailedOffChainCancelation(t *testing.T) {
784+
func TestFailedOffChainCancellation(t *testing.T) {
785785
t.Run("stable protocol", func(t *testing.T) {
786-
testFailedOffChainCancelation(t)
786+
testFailedOffChainCancellation(t)
787787
})
788788

789789
t.Run("experimental protocol", func(t *testing.T) {
790790
loopdb.EnableExperimentalProtocol()
791791
defer loopdb.ResetCurrentProtocolVersion()
792792

793-
testFailedOffChainCancelation(t)
793+
testFailedOffChainCancellation(t)
794794
})
795795
}
796796

797-
func testFailedOffChainCancelation(t *testing.T) {
797+
func testFailedOffChainCancellation(t *testing.T) {
798798
defer test.Guard(t)()
799799

800800
lnd := test.NewMockLnd()
@@ -873,7 +873,7 @@ func testFailedOffChainCancelation(t *testing.T) {
873873
FailureSourceIndex: 1,
874874
},
875875
},
876-
// Add one htlc that failed in the network at wide.
876+
// Add one htlc that failed in the network at large.
877877
{
878878
Status: lnrpc.HTLCAttempt_FAILED,
879879
Route: &lnrpc.Route{
@@ -892,7 +892,7 @@ func testFailedOffChainCancelation(t *testing.T) {
892892
State: lnrpc.Payment_SUCCEEDED,
893893
}
894894

895-
// We want to fail our swap payment and succeed the prepush, so we send
895+
// We want to fail our swap payment and succeed the prepayment, so we send
896896
// a failure update to the payment that has the larger amount.
897897
if pmt1.Amount > pmt2.Amount {
898898
pmt1.TrackPaymentMessage.Updates <- failUpdate
@@ -908,7 +908,7 @@ func testFailedOffChainCancelation(t *testing.T) {
908908
require.NoError(t, err)
909909

910910
payAddr := invoice.PaymentAddr.UnwrapOrFail(t)
911-
swapCancelation := &outCancelDetails{
911+
swapCancellation := &outCancelDetails{
912912
hash: swap.hash,
913913
paymentAddr: payAddr,
914914
metadata: routeCancelMetadata{
@@ -920,7 +920,7 @@ func testFailedOffChainCancelation(t *testing.T) {
920920
},
921921
},
922922
}
923-
server.assertSwapCanceled(t, swapCancelation)
923+
server.assertSwapCanceled(t, swapCancellation)
924924

925925
// Finally, the swap should be recorded with failed off chain timeout.
926926
cfg.store.(*loopdb.StoreMock).AssertLoopOutState(

0 commit comments

Comments
 (0)