mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loop+test: enhance epoch subscription for multiple subscribers
This commit is contained in:
parent
b43fa11cc1
commit
26e239c2c7
4 changed files with 62 additions and 27 deletions
|
|
@ -250,3 +250,11 @@ func (ctx *testContext) assertPreimagePush(preimage lntypes.Preimage) {
|
|||
ctx.Context.T.Fatalf("preimage not pushed")
|
||||
}
|
||||
}
|
||||
|
||||
func (ctx *testContext) AssertEpochListeners(numListeners int32) {
|
||||
ctx.Context.T.Helper()
|
||||
|
||||
require.Eventually(ctx.Context.T, func() bool {
|
||||
return ctx.Lnd.EpochSubscribers() == numListeners
|
||||
}, test.Timeout, time.Millisecond*250)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue