diff --git a/contractcourt/htlc_incoming_resolver_test.go b/contractcourt/htlc_incoming_resolver_test.go index 1c6628a3..a27c5883 100644 --- a/contractcourt/htlc_incoming_resolver_test.go +++ b/contractcourt/htlc_incoming_resolver_test.go @@ -96,7 +96,7 @@ func TestHtlcIncomingResolverExitSettle(t *testing.T) { defer timeout(t)() ctx := newIncomingResolverTestContext(t) - ctx.registry.notifyEvent = &invoices.HtlcResolution{ + ctx.registry.notifyResolution = &invoices.HtlcResolution{ CircuitKey: testResCircuitKey, Preimage: &testResPreimage, } @@ -126,7 +126,7 @@ func TestHtlcIncomingResolverExitCancel(t *testing.T) { defer timeout(t)() ctx := newIncomingResolverTestContext(t) - ctx.registry.notifyEvent = &invoices.HtlcResolution{ + ctx.registry.notifyResolution = &invoices.HtlcResolution{ CircuitKey: testResCircuitKey, } ctx.resolve() diff --git a/contractcourt/mock_registry_test.go b/contractcourt/mock_registry_test.go index 8ccd0f6c..dca27d62 100644 --- a/contractcourt/mock_registry_test.go +++ b/contractcourt/mock_registry_test.go @@ -16,9 +16,9 @@ type notifyExitHopData struct { } type mockRegistry struct { - notifyChan chan notifyExitHopData - notifyErr error - notifyEvent *invoices.HtlcResolution + notifyChan chan notifyExitHopData + notifyErr error + notifyResolution *invoices.HtlcResolution } func (r *mockRegistry) NotifyExitHopHtlc(payHash lntypes.Hash, @@ -34,7 +34,7 @@ func (r *mockRegistry) NotifyExitHopHtlc(payHash lntypes.Hash, currentHeight: currentHeight, } - return r.notifyEvent, r.notifyErr + return r.notifyResolution, r.notifyErr } func (r *mockRegistry) HodlUnsubscribeAll(subscriber chan<- interface{}) {}