Browse Source

Optimize tests

Volodymyr Tkach 2 years ago
parent
commit
58b9e43939
1 changed files with 7 additions and 7 deletions
  1. 7 7
      utils/http/helpers/helpers_test.go

+ 7 - 7
utils/http/helpers/helpers_test.go

@@ -85,7 +85,7 @@ var _ = Describe("helpers", func() {
 			})
 			})
 
 
 			AfterEach(func() {
 			AfterEach(func() {
-				resp.Body.Close()
+				Expect(resp.Body.Close()).To(Succeed())
 				srv.Close()
 				srv.Close()
 			})
 			})
 
 
@@ -109,7 +109,7 @@ var _ = Describe("helpers", func() {
 			})
 			})
 
 
 			AfterEach(func() {
 			AfterEach(func() {
-				resp.Body.Close()
+				Expect(resp.Body.Close()).To(Succeed())
 				srv.Close()
 				srv.Close()
 			})
 			})
 
 
@@ -133,7 +133,7 @@ var _ = Describe("helpers", func() {
 			})
 			})
 
 
 			AfterEach(func() {
 			AfterEach(func() {
-				resp.Body.Close()
+				Expect(resp.Body.Close()).To(Succeed())
 				srv.Close()
 				srv.Close()
 			})
 			})
 
 
@@ -157,7 +157,7 @@ var _ = Describe("helpers", func() {
 			})
 			})
 
 
 			AfterEach(func() {
 			AfterEach(func() {
-				resp.Body.Close()
+				Expect(resp.Body.Close()).To(Succeed())
 				srv.Close()
 				srv.Close()
 			})
 			})
 
 
@@ -181,7 +181,7 @@ var _ = Describe("helpers", func() {
 			})
 			})
 
 
 			AfterEach(func() {
 			AfterEach(func() {
-				resp.Body.Close()
+				Expect(resp.Body.Close()).To(Succeed())
 				srv.Close()
 				srv.Close()
 			})
 			})
 
 
@@ -205,7 +205,7 @@ var _ = Describe("helpers", func() {
 			})
 			})
 
 
 			AfterEach(func() {
 			AfterEach(func() {
-				resp.Body.Close()
+				Expect(resp.Body.Close()).To(Succeed())
 				srv.Close()
 				srv.Close()
 			})
 			})
 
 
@@ -229,7 +229,7 @@ var _ = Describe("helpers", func() {
 			})
 			})
 
 
 			AfterEach(func() {
 			AfterEach(func() {
-				resp.Body.Close()
+				Expect(resp.Body.Close()).To(Succeed())
 				srv.Close()
 				srv.Close()
 			})
 			})