Remove unused waitSleepTime field in csiAttacher

This commit is contained in:
Chris Henzie 2020-12-28 11:52:32 -08:00
parent 81b13a912c
commit b4e3f272b9
3 changed files with 4 additions and 7 deletions

View File

@ -46,9 +46,8 @@ const (
)
type csiAttacher struct {
plugin *csiPlugin
k8s kubernetes.Interface
waitSleepTime time.Duration
plugin *csiPlugin
k8s kubernetes.Interface
csiClient csiClient
}

View File

@ -990,7 +990,6 @@ func TestAttacherDetach(t *testing.T) {
t.Errorf("test case %s failed: %v", tc.name, err)
}
watchError := tc.watcherError
csiAttacher.waitSleepTime = 100 * time.Millisecond
go func() {
if watchError {
errStatus := apierrors.NewInternalError(fmt.Errorf("we got an error")).Status()

View File

@ -944,9 +944,8 @@ func (p *csiPlugin) newAttacherDetacher() (*csiAttacher, error) {
}
return &csiAttacher{
plugin: p,
k8s: k8s,
waitSleepTime: 1 * time.Second,
plugin: p,
k8s: k8s,
}, nil
}