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{ c := &Client{
ctx: context.Background(), ctx: context.Background(),
cfg: Config{ endpoints: tt.endpoints,
Endpoints: tt.endpoints, epMu: new(sync.RWMutex),
},
Maintenance: &mockMaintenance{ Maintenance: &mockMaintenance{
Version: endpointToVersion, Version: endpointToVersion,
}, },
mu: new(sync.RWMutex),
} }
if err := c.checkVersion(); err != tt.expectedError { if err := c.checkVersion(); err != tt.expectedError {