Skip to content

Commit 25cdfaa

Browse files
committed
fix unittest for windows
1 parent 070bde4 commit 25cdfaa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/kubelet/eviction/memory_threshold_notifier_windows.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ limitations under the License.
2020
package eviction
2121

2222
import (
23-
"context"
2423
"fmt"
2524
"time"
2625

@@ -48,8 +47,7 @@ func NewMemoryThresholdNotifier(logger klog.Logger, threshold evictionapi.Thresh
4847
}, nil
4948
}
5049

51-
func (m *windowsMemoryThresholdNotifier) Start(ctx context.Context) {
52-
logger := klog.FromContext(ctx)
50+
func (m *windowsMemoryThresholdNotifier) Start(logger klog.Logger) {
5351
logger.Info("Eviction manager: starting windowsMemoryThresholdNotifier", "notifier", m.Description())
5452
go func() {
5553
for true {

0 commit comments

Comments
 (0)