Skip to content

Commit

Permalink
Fix unit test unreferenced mu in clientv3/client_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Chao Chen <[email protected]>
  • Loading branch information
chaochn47 committed Oct 31, 2023
1 parent 055b6d7 commit 97a6f95
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions clientv3/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 97a6f95

Please sign in to comment.