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 & ran tests * removed outer if statement as wasn't checking anything
This commit is contained in:
parent
3b8379f081
commit
9660e7842d
@ -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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user