1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-22 16:18:07 +00:00

fixed issue #1295 by making chavacava's suggestion (#1304)

* fixed issue 1295 by making chavacava's suggestion & ran tests

* removed outer if statement as wasn't checking anything
This commit is contained in:
olcuhu 2022-10-13 15:17:13 +01:00 committed by GitHub
parent 3b8379f081
commit 9660e7842d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,15 +264,9 @@ func TestGetKubernetesURL(t *testing.T) {
} }
k8sURL := getKubernetesURL() k8sURL := getKubernetesURL()
if !c.useDefault {
if k8sURL != c.expected { if k8sURL != c.expected {
t.Errorf("Expected %q but Got %q", k8sURL, c.expected) t.Errorf("Expected %q but Got %q", k8sURL, c.expected)
} }
} else {
if k8sURL != c.expected {
t.Errorf("Expected %q but Got %q", k8sURL, c.expected)
}
}
}) })
} }
} }