mirror of
https://github.com/status-im/consul.git
synced 2025-02-12 21:56:46 +00:00
The idleTTL was being written and read concurrently. Instead move the idleTTL to a struct field so that when one test patches the TTL it does not impact others. The background goroutines for the store can outlive a test because context cancellation is async.