Merge pull request #89215 from k-toyoda-pi/use_expectnotequal_service

Use ExpectNotEqual in test/e2e/network/
This commit is contained in:
Kubernetes Prow Robot
2020-03-31 14:15:28 -07:00
committed by GitHub
2 changed files with 24 additions and 1 deletions

View File

@@ -940,7 +940,7 @@ var _ = SIGDescribe("Services", func() {
pausePods, err := cs.CoreV1().Pods(ns).List(context.TODO(), metav1.ListOptions{LabelSelector: labelSelector.String()})
framework.ExpectNoError(err, "Error in listing pods associated with pause pod deployments")
gomega.Expect(pausePods.Items[0].Spec.NodeName).ToNot(gomega.Equal(pausePods.Items[1].Spec.NodeName))
framework.ExpectNotEqual(pausePods.Items[0].Spec.NodeName, pausePods.Items[1].Spec.NodeName)
serviceAddress := net.JoinHostPort(serviceIP, strconv.Itoa(servicePort))