diff --git a/pkg/minikube/perf/logs_test.go b/pkg/minikube/perf/logs_test.go index b62e0cb295..0fbdf35bfb 100644 --- a/pkg/minikube/perf/logs_test.go +++ b/pkg/minikube/perf/logs_test.go @@ -38,7 +38,8 @@ func TestTimeCommandLogs(t *testing.T) { if !ok { t.Fatalf("expected log %s but didn't find it", log) } - if actualTime < time { + // Let's give a little wiggle room so we don't fail if time is 3 and actualTime is 2.999 + if actualTime < time && time-actualTime > 0.001 { t.Fatalf("expected log \"%s\" to take more time than it actually did. got %v, expected > %v", log, actualTime, time) } }