Fix typo getRequestId -> getRouteId

This commit is contained in:
Héctor Hurtado
2020-09-10 12:44:58 +02:00
parent 9a78bddcc4
commit 6d24cc4d2d
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1147,7 +1147,7 @@ func TestGetRouteId200sOnHappyPath(t *testing.T) {
r := httptest.NewRequest("GET", "/not-important-here", nil)
w := httptest.NewRecorder()
getRequestId(w, r, &h)
getRouteId(w, r, &h)
res := w.Result()
if res.StatusCode != http.StatusOK {
@@ -1163,7 +1163,7 @@ func TestGetRouteIdSetsOctectStreamContentType(t *testing.T) {
r := httptest.NewRequest("GET", "/not-important-here", nil)
w := httptest.NewRecorder()
getRequestId(w, r, &h)
getRouteId(w, r, &h)
res := w.Result()
if v := res.Header.Get("Content-Type"); v != "application/octet-stream" {
@@ -1180,7 +1180,7 @@ func TestGetRouteIdReturnsTheCorrectRouteId(t *testing.T) {
r := httptest.NewRequest("GET", "/not-important-here", nil)
w := httptest.NewRecorder()
getRequestId(w, r, &h)
getRouteId(w, r, &h)
res := w.Result()
if body, _ := ioutil.ReadAll(res.Body); string(body) != h.Route.ID {