mirror of
https://github.com/status-im/consul.git
synced 2025-03-02 22:30:43 +00:00
newMockSnapshotHandler has an assertion on t.Cleanup which gets called before the event publisher is cancelled. This commit reorders the context.WithCancel so it properly gets cancelled before the assertion is made.