mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Fix unit test unreferenced mu in clientv3/client_test.go
Signed-off-by: Chao Chen <chaochn@amazon.com>
This commit is contained in:
parent
055b6d7b19
commit
97a6f957b2
@ -237,14 +237,12 @@ func TestClientRejectOldCluster(t *testing.T) {
|
|||||||
endpointToVersion[tt.endpoints[j]] = tt.versions[j]
|
endpointToVersion[tt.endpoints[j]] = tt.versions[j]
|
||||||
}
|
}
|
||||||
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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user