Browse Source

Check also Retry-After

Volodymyr Tkach 2 years ago
parent
commit
cbb0628c87
1 changed files with 1 additions and 0 deletions
  1. 1 0
      utils/http/servauth/servauth_test.go

+ 1 - 0
utils/http/servauth/servauth_test.go

@@ -130,6 +130,7 @@ var _ = Describe("servauth", func() {
 			defer resp.Body.Close()
 			defer resp.Body.Close()
 
 
 			Expect(resp.StatusCode).To(Equal(http.StatusTooManyRequests))
 			Expect(resp.StatusCode).To(Equal(http.StatusTooManyRequests))
+			Expect(resp.Header.Get("Retry-After")).To(Equal("30"))
 
 
 			body, err := io.ReadAll(resp.Body)
 			body, err := io.ReadAll(resp.Body)
 			Expect(err).To(Succeed())
 			Expect(err).To(Succeed())