7afd113b9f
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. |
||
---|---|---|
.. | ||
chanevent_test.go | ||
chanevent.go | ||
chaneventstore_test.go | ||
chaneventstore_testctx_test.go | ||
chaneventstore.go | ||
log.go |