Skip to content

Commit

Permalink
Updated code example to fit previous refactor (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
sugamadhiakri authored Aug 10, 2022
1 parent c211a2e commit 2263e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ func TestStoreWins(t *testing.T) {
t.Run("it records wins on POST", func(t *testing.T) {
player := "Pepper"

request, _ := http.NewRequest(http.MethodPost, fmt.Sprintf("/players/%s", player), nil)
request := newPostWinRequest(player)
response := httptest.NewRecorder()

server.ServeHTTP(response, request)
Expand Down

0 comments on commit 2263e59

Please sign in to comment.