Piotr Czajkowski 4 years ago
parent
commit
2dd0575b72
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rest_test.go

+ 2 - 2
rest_test.go

@@ -57,7 +57,7 @@ func fakeServer(statusCode int, data string) *httptest.Server {
 	return httptest.NewServer(http.HandlerFunc(function))
 }
 
-func TestGETBodyToString(t *testing.T) {
+func TestGET(t *testing.T) {
 	expected := "Some text"
 	server := fakeServer(http.StatusOK, expected)
 	defer server.Close()
@@ -78,7 +78,7 @@ func TestGETBodyToString(t *testing.T) {
 	}
 }
 
-func TestGETBodyToString404(t *testing.T) {
+func TestGET404(t *testing.T) {
 	expected := "Some text"
 	server := fakeServer(http.StatusNotFound, expected)
 	defer server.Close()