Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13587 from manadart/2.9-raflease-client-test-race
#13587 Fixes a testing race in `github.com/juju/juju/api/raftlease.(*RaftLeaseRemoteSuite).TestSetAddress()`. See: https://jenkins.juju.canonical.com/job/Unit-RunUnitTests-race-amd64/1050 The logic copies a reference under lock protection and uses it outside of the lock. To fix this we copy the value into a new reference that does not need lock protection. ## QA steps Run `RaftLeaseRemoteSuite.TestSetAddress` in a loop with the `-race` flag. ## Documentation changes None. ## Bug reference N/A
- Loading branch information