Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit c28ba6a

Browse files
authored
Merge pull request #972 from pohly/metrics-test-fix
test: nil pointer in metrics test
2 parents e9ed6a3 + d7203cb commit c28ba6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/e2e/metrics/metrics.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ var _ = deploy.Describe("direct-testing", "direct-testing-metrics", "", func(d *
7878
pod.Namespace, pod.Name, port.ContainerPort)
7979
resp, err := client.Get(url)
8080
framework.ExpectNoError(err, "GET failed")
81+
Expect(resp.Body).NotTo(BeNil(), "have response body")
8182
data, err := ioutil.ReadAll(resp.Body)
8283
framework.ExpectNoError(err, "read GET response")
8384
name := pod.Name + "/" + container.Name

0 commit comments

Comments
 (0)