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]
|
||||
}
|
||||
c := &Client{
|
||||
ctx: context.Background(),
|
||||
cfg: Config{
|
||||
Endpoints: tt.endpoints,
|
||||
},
|
||||
ctx: context.Background(),
|
||||
endpoints: tt.endpoints,
|
||||
epMu: new(sync.RWMutex),
|
||||
Maintenance: &mockMaintenance{
|
||||
Version: endpointToVersion,
|
||||
},
|
||||
mu: new(sync.RWMutex),
|
||||
}
|
||||
|
||||
if err := c.checkVersion(); err != tt.expectedError {
|
||||
|
Loading…
x
Reference in New Issue
Block a user