Fix unit test unreferenced mu in clientv3/client_test.go

Signed-off-by: Chao Chen <chaochn@amazon.com>
This commit is contained in:
Chao Chen 2023-10-31 09:43:06 -07:00
parent 055b6d7b19
commit 97a6f957b2

View File

@ -238,13 +238,11 @@ func TestClientRejectOldCluster(t *testing.T) {
}
c := &Client{
ctx: context.Background(),
cfg: Config{
Endpoints: tt.endpoints,
},
endpoints: tt.endpoints,
epMu: new(sync.RWMutex),
Maintenance: &mockMaintenance{
Version: endpointToVersion,
},
mu: new(sync.RWMutex),
}
if err := c.checkVersion(); err != tt.expectedError {