From 60bb74c8b7bffdbb1907e97c48230a24660719f9 Mon Sep 17 00:00:00 2001 From: lencap Date: Tue, 28 Jan 2025 00:42:41 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: lencap --- asset/mock.go | 2 +- itest/send_test.go | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/asset/mock.go b/asset/mock.go index 90e2309f6..69526e4cd 100644 --- a/asset/mock.go +++ b/asset/mock.go @@ -111,7 +111,7 @@ func AssetHasSplitRootAssert(hasSplit bool) AssetAssert { } } -// AssetHasSplitRootAssert returns an Assert that checks the state of an asset's +// AssetHasScriptKeyAssert returns an Assert that checks the state of an asset's // split commitment root. func AssetHasScriptKeyAssert(hasKey bool) AssetAssert { return func(a *Asset) error { diff --git a/itest/send_test.go b/itest/send_test.go index 2b9ee2984..ebd86ef36 100644 --- a/itest/send_test.go +++ b/itest/send_test.go @@ -282,8 +282,9 @@ func testMinRelayFeeBump(t *harnessTest) { require.NoError(t.t, err) } -// testRestartReceiver tests that the receiver node's asset balance after a -// single asset transfer does not change if the receiver node restarts. +// testRestartReceiverCheckBalance tests that the receiver node's asset +// balance after a single asset transfer does not change if the receiver +// node restarts. // Before the addition of this test, after restarting the receiver node // the asset balance would be erroneously incremented. This is because the // receiver node was not storing asset transfer in its database with the @@ -1667,9 +1668,9 @@ func assertAssetNtfsEvent[T assetRpcEvent](t *harnessTest, expectedCount, countFound) } -// assertAssetNtfsEvent asserts that the given asset complete event notification -// was received. This function will block until the event is received or the -// event stream is closed. +// assertAssetCompleteEvent asserts that the given asset complete event +// notification was received. This function will block until the event +// is received or the event stream is closed. func assertAssetCompleteEvent(t *harnessTest, timeout time.Duration, encodedAddr string, stream *EventSubscription[*tapdevrpc.ReceiveAssetEvent]) {