From bf6f6b31f48f64611e382483a5e487828043f2b5 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Wed, 22 Apr 2020 13:52:05 +0200 Subject: [PATCH] client: fix some comments --- client_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client_test.go b/client_test.go index 1675009..cf38c4b 100644 --- a/client_test.go +++ b/client_test.go @@ -35,14 +35,13 @@ var ( prepayInvoiceDesc = "prepay" ) -// TestSuccess tests the uncharge happy flow. +// TestSuccess tests the loop out happy flow. func TestSuccess(t *testing.T) { defer test.Guard(t)() ctx := createClientTestContext(t, nil) - // Initiate uncharge. - + // Initiate loop out. hash, _, err := ctx.swapClient.LoopOut(context.Background(), testRequest) if err != nil { t.Fatal(err) @@ -54,7 +53,7 @@ func TestSuccess(t *testing.T) { signalSwapPaymentResult := ctx.AssertPaid(swapInvoiceDesc) signalPrepaymentResult := ctx.AssertPaid(prepayInvoiceDesc) - // Expect client to register for conf + // Expect client to register for conf. confIntent := ctx.AssertRegisterConf() testSuccess(ctx, testRequest.Amount, *hash, @@ -228,7 +227,7 @@ func testResume(t *testing.T, expired, preimageRevealed, expectSuccess bool) { signalSwapPaymentResult := ctx.AssertPaid(swapInvoiceDesc) signalPrepaymentResult := ctx.AssertPaid(prepayInvoiceDesc) - // Expect client to register for conf + // Expect client to register for conf. confIntent := ctx.AssertRegisterConf() signalSwapPaymentResult(nil)