Browse Source

Fix tests

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

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

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