Skip to content

Commit 964a10f

Browse files
committed
fix util function.
1 parent f28a9d6 commit 964a10f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

conformance/utils/kubernetes/helpers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@ func GetPodsWithLabel(t *testing.T, c client.Client, namespace string, labels ma
335335
return false, nil
336336
}
337337
}
338-
} else {
339-
t.Logf("No pods found with selector %v yet. Retrying.", labels)
338+
return true, nil
340339
}
340+
t.Logf("No pods found with selector %v yet. Retrying.", labels)
341341
return false, nil
342342
})
343343
return pods.Items, waitErr

conformance/utils/traffic/traffic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func MakeRequestAndExpectEventuallyConsistentResponse(
8686
}
8787

8888
// MakeRequestAndExpectResponseFromPod sends a request to the specified path
89-
func MakeRequestAndExpectResponseFromPod(t *testing.T, r roundtripper.RoundTripper, timeoutConfig gwconfig.TimeoutConfig, gwAddr, path string, podPrefix, nameSpace string) {
89+
func MakeRequestAndExpectResponseFromPod(t *testing.T, r roundtripper.RoundTripper, timeoutConfig gwconfig.TimeoutConfig, gwAddr, path, podPrefix, nameSpace string) {
9090
t.Helper()
9191
expectedResponse := gwhttp.ExpectedResponse{
9292
Request: gwhttp.Request{

0 commit comments

Comments
 (0)