mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Remove unused waitSleepTime field in csiAttacher
This commit is contained in:
parent
81b13a912c
commit
b4e3f272b9
@ -46,9 +46,8 @@ const (
|
||||
)
|
||||
|
||||
type csiAttacher struct {
|
||||
plugin *csiPlugin
|
||||
k8s kubernetes.Interface
|
||||
waitSleepTime time.Duration
|
||||
plugin *csiPlugin
|
||||
k8s kubernetes.Interface
|
||||
|
||||
csiClient csiClient
|
||||
}
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user