contractcourt: rename mock notifyEvent to notifyResolution
This commit is contained in:
parent
2c1eb17192
commit
2c44afa3a7
@ -96,7 +96,7 @@ func TestHtlcIncomingResolverExitSettle(t *testing.T) {
|
|||||||
defer timeout(t)()
|
defer timeout(t)()
|
||||||
|
|
||||||
ctx := newIncomingResolverTestContext(t)
|
ctx := newIncomingResolverTestContext(t)
|
||||||
ctx.registry.notifyEvent = &invoices.HtlcResolution{
|
ctx.registry.notifyResolution = &invoices.HtlcResolution{
|
||||||
CircuitKey: testResCircuitKey,
|
CircuitKey: testResCircuitKey,
|
||||||
Preimage: &testResPreimage,
|
Preimage: &testResPreimage,
|
||||||
}
|
}
|
||||||
@ -126,7 +126,7 @@ func TestHtlcIncomingResolverExitCancel(t *testing.T) {
|
|||||||
defer timeout(t)()
|
defer timeout(t)()
|
||||||
|
|
||||||
ctx := newIncomingResolverTestContext(t)
|
ctx := newIncomingResolverTestContext(t)
|
||||||
ctx.registry.notifyEvent = &invoices.HtlcResolution{
|
ctx.registry.notifyResolution = &invoices.HtlcResolution{
|
||||||
CircuitKey: testResCircuitKey,
|
CircuitKey: testResCircuitKey,
|
||||||
}
|
}
|
||||||
ctx.resolve()
|
ctx.resolve()
|
||||||
|
@ -16,9 +16,9 @@ type notifyExitHopData struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type mockRegistry struct {
|
type mockRegistry struct {
|
||||||
notifyChan chan notifyExitHopData
|
notifyChan chan notifyExitHopData
|
||||||
notifyErr error
|
notifyErr error
|
||||||
notifyEvent *invoices.HtlcResolution
|
notifyResolution *invoices.HtlcResolution
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *mockRegistry) NotifyExitHopHtlc(payHash lntypes.Hash,
|
func (r *mockRegistry) NotifyExitHopHtlc(payHash lntypes.Hash,
|
||||||
@ -34,7 +34,7 @@ func (r *mockRegistry) NotifyExitHopHtlc(payHash lntypes.Hash,
|
|||||||
currentHeight: currentHeight,
|
currentHeight: currentHeight,
|
||||||
}
|
}
|
||||||
|
|
||||||
return r.notifyEvent, r.notifyErr
|
return r.notifyResolution, r.notifyErr
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *mockRegistry) HodlUnsubscribeAll(subscriber chan<- interface{}) {}
|
func (r *mockRegistry) HodlUnsubscribeAll(subscriber chan<- interface{}) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user