mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Changed to return in the success case testing testContext instead of using
an else statement. #4162
This commit is contained in:
parent
d3e04cd246
commit
70237e9cc6
@ -38,7 +38,9 @@ var _ = Describe("Services", func() {
|
|||||||
It("should provide DNS for the cluster", func() {
|
It("should provide DNS for the cluster", func() {
|
||||||
if testContext.provider == "vagrant" {
|
if testContext.provider == "vagrant" {
|
||||||
By("Skipping test which is broken for vagrant (See https://github.com/GoogleCloudPlatform/kubernetes/issues/3580)")
|
By("Skipping test which is broken for vagrant (See https://github.com/GoogleCloudPlatform/kubernetes/issues/3580)")
|
||||||
} else {
|
return
|
||||||
|
}
|
||||||
|
|
||||||
podClient := c.Pods(api.NamespaceDefault)
|
podClient := c.Pods(api.NamespaceDefault)
|
||||||
|
|
||||||
//TODO: Wait for skyDNS
|
//TODO: Wait for skyDNS
|
||||||
@ -113,7 +115,6 @@ var _ = Describe("Services", func() {
|
|||||||
podClient.Delete(pod.Name)
|
podClient.Delete(pod.Name)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
||||||
By("waiting for the pod to start running")
|
By("waiting for the pod to start running")
|
||||||
waitForPodRunning(c, pod.Name)
|
waitForPodRunning(c, pod.Name)
|
||||||
|
|
||||||
@ -152,7 +153,6 @@ var _ = Describe("Services", func() {
|
|||||||
// TODO: probe from the host, too.
|
// TODO: probe from the host, too.
|
||||||
|
|
||||||
fmt.Printf("DNS probes using %s succeeded\n", pod.Name)
|
fmt.Printf("DNS probes using %s succeeded\n", pod.Name)
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
It("should provide RW and RO services", func() {
|
It("should provide RW and RO services", func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user