@@ -108,13 +108,13 @@ func (r *Runtime) Reset(ctx context.Context) error {
108
108
return define .ErrRuntimeStopped
109
109
}
110
110
111
- var timeout * uint
111
+ var timeout uint = 0
112
112
pods , err := r .GetAllPods ()
113
113
if err != nil {
114
114
return err
115
115
}
116
116
for _ , p := range pods {
117
- if ctrs , err := r .RemovePod (ctx , p , true , true , timeout ); err != nil {
117
+ if ctrs , err := r .RemovePod (ctx , p , true , true , & timeout ); err != nil {
118
118
if errors .Is (err , define .ErrNoSuchPod ) {
119
119
continue
120
120
}
@@ -133,7 +133,7 @@ func (r *Runtime) Reset(ctx context.Context) error {
133
133
}
134
134
135
135
for _ , c := range ctrs {
136
- if ctrs , _ , err := r .RemoveContainerAndDependencies (ctx , c , true , true , timeout ); err != nil {
136
+ if ctrs , _ , err := r .RemoveContainerAndDependencies (ctx , c , true , true , & timeout ); err != nil {
137
137
for ctr , err := range ctrs {
138
138
logrus .Errorf ("Error removing container %s: %v" , ctr , err )
139
139
}
@@ -163,7 +163,7 @@ func (r *Runtime) Reset(ctx context.Context) error {
163
163
return err
164
164
}
165
165
for _ , v := range volumes {
166
- if err := r .RemoveVolume (ctx , v , true , timeout ); err != nil {
166
+ if err := r .RemoveVolume (ctx , v , true , & timeout ); err != nil {
167
167
if errors .Is (err , define .ErrNoSuchVolume ) {
168
168
continue
169
169
}
0 commit comments