mirror of
https://github.com/status-im/consul.git
synced 2025-02-11 13:17:36 +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.