@@ -18,7 +18,6 @@ func TestHttpGet(t *testing.T) {
1818 resp , err := HttpGet (url , header )
1919 if err != nil {
2020 log .Fatal (err )
21- t .FailNow ()
2221 }
2322
2423 body , _ := ioutil .ReadAll (resp .Body )
@@ -40,7 +39,6 @@ func TestHttpPost(t *testing.T) {
4039 resp , err := HttpPost (url , header , nil , bodyParams )
4140 if err != nil {
4241 log .Fatal (err )
43- t .FailNow ()
4442 }
4543 body , _ := ioutil .ReadAll (resp .Body )
4644 t .Log ("response: " , resp .StatusCode , string (body ))
@@ -67,7 +65,6 @@ func TestHttpPostFormData(t *testing.T) {
6765 resp , err := HttpPost (apiUrl , header , postData , nil )
6866 if err != nil {
6967 log .Fatal (err )
70- t .FailNow ()
7168 }
7269 body , _ := ioutil .ReadAll (resp .Body )
7370 t .Log ("response: " , resp .StatusCode , string (body ))
@@ -89,7 +86,6 @@ func TestHttpPut(t *testing.T) {
8986 resp , err := HttpPut (url , header , nil , bodyParams )
9087 if err != nil {
9188 log .Fatal (err )
92- t .FailNow ()
9389 }
9490 body , _ := ioutil .ReadAll (resp .Body )
9591 t .Log ("response: " , resp .StatusCode , string (body ))
@@ -111,7 +107,6 @@ func TestHttpPatch(t *testing.T) {
111107 resp , err := HttpPatch (url , header , nil , bodyParams )
112108 if err != nil {
113109 log .Fatal (err )
114- t .FailNow ()
115110 }
116111 body , _ := ioutil .ReadAll (resp .Body )
117112 t .Log ("response: " , resp .StatusCode , string (body ))
@@ -122,7 +117,6 @@ func TestHttpDelete(t *testing.T) {
122117 resp , err := HttpDelete (url )
123118 if err != nil {
124119 log .Fatal (err )
125- t .FailNow ()
126120 }
127121 body , _ := ioutil .ReadAll (resp .Body )
128122 t .Log ("response: " , resp .StatusCode , string (body ))
@@ -148,7 +142,6 @@ func TestParseResponse(t *testing.T) {
148142 resp , err := HttpGet (url , header )
149143 if err != nil {
150144 log .Fatal (err )
151- t .FailNow ()
152145 }
153146
154147 type Todo struct {
@@ -162,7 +155,6 @@ func TestParseResponse(t *testing.T) {
162155 err = ParseHttpResponse (resp , toDoResp )
163156 if err != nil {
164157 log .Fatal (err )
165- t .FailNow ()
166158 }
167159 t .Log ("response: " , toDoResp )
168160}
0 commit comments