Browse Source

Check also Retry-After

Volodymyr Tkach 2 years ago
parent
commit
895160e3b3
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

@@ -123,6 +123,7 @@ var _ = Describe("servauth", func() {
 				Expect(err).To(Succeed())
 				Expect(resp.Body.Close())
 				Expect(resp.StatusCode).To(Equal(http.StatusUnauthorized))
+				Expect(resp.Header.Get("Retry-After")).To(Equal(""))
 			}
 
 			resp, err := client.Do(req)