From b4b181b64784b5d0ddc38c32d98a9d907a5924b4 Mon Sep 17 00:00:00 2001 From: Sharif Elgamal Date: Fri, 25 Sep 2020 10:06:45 -0700 Subject: [PATCH] give the logs test a little wiggle room --- pkg/minikube/perf/logs_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } }