Remove a level of indentation in the TrafficDistribution e2e

(No other changes to the code)
This commit is contained in:
Dan Winship 2025-03-19 13:39:36 -04:00
parent 8f7bb964de
commit b1a0fea4c6

View File

@ -96,8 +96,7 @@ var _ = common.SIGDescribe("Traffic Distribution", func() {
// Main test specifications.
////////////////////////////////////////////////////////////////////////////
ginkgo.When("Service has trafficDistribution=PreferClose", func() {
ginkgo.It("should route traffic to an endpoint that is close to the client", func(ctx context.Context) {
ginkgo.It("should route traffic to an endpoint in the same zone when using PreferClose", func(ctx context.Context) {
ginkgo.By("finding 3 zones with schedulable nodes")
allZonesSet, err := e2enode.GetSchedulableClusterZones(ctx, c)
@ -247,8 +246,5 @@ var _ = common.SIGDescribe("Traffic Distribution", func() {
})
gomega.Eventually(ctx, requestsFromClient(clientPod)).WithPolling(5 * time.Second).WithTimeout(e2eservice.KubeProxyLagTimeout).Should(requestsSucceedByReachingAnyServingPod)
})
})
})