Skip to content

Commit 12293b8

Browse files
MustafaSaberdemonCoder95
authored andcommitted
only check the status code for the limited request
Signed-off-by: Mustafa Abdelrahman <[email protected]>
1 parent 0fe5d80 commit 12293b8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/e2e/routegroup.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,8 @@ rBackend: Path("/backend") -> inlineContent("%s") -> <shunt>;
390390
return code == http.StatusTooManyRequests
391391
}, false)
392392
Expect(err).NotTo(HaveOccurred())
393-
s, err = getBody(resp)
394-
Expect(err).NotTo(HaveOccurred())
395-
Expect(s).To(Equal(expectedResponse))
393+
Expect(resp).NotTo(BeNil())
394+
Expect(resp.StatusCode).To(Eqal(http.StatusTooManyRequests))
396395
})
397396

398397
It("Should create blue-green routes [RouteGroup] [Zalando]", func() {

0 commit comments

Comments
 (0)