lnd.xprv/chanfitness
carla 7afd113b9f
chanfitness: add test context for better testing
As we add more elements to the chanfitness subsystem, we will require
more complex testing. The current tests are built around the inability
to mock subscriptions, which is remedied by addition of our own mock.
This context allows us to run the full store in a test, rather than
having to manually spin up the main goroutine. Mocking our subscriptions
is required so that we can block our subscribe updates on consumption,
using the real package provides us with no guarantee that the client
receives the update before shutdown, which produces test flakes.

This change also makes a move towards separating out the testing of our
event store from testing the underlying event logs to prepare for
further refactoring.
2020-09-08 13:47:14 +02:00
..
chanevent_test.go chanfitness: fix line wrapping 2020-09-08 13:47:12 +02:00
chanevent.go chanfitness: fix line wrapping 2020-09-08 13:47:12 +02:00
chaneventstore_test.go chanfitness: add test context for better testing 2020-09-08 13:47:14 +02:00
chaneventstore_testctx_test.go chanfitness: add test context for better testing 2020-09-08 13:47:14 +02:00
chaneventstore.go multi: add interface for subscribe client so it can be mocked 2020-09-08 13:47:13 +02:00
log.go chanfitness: Add channel event log structure 2019-10-25 09:51:07 +02:00