Skip to content

Commit

Permalink
Merge branch 'main' into bugfix/method-mismatch-depending-on-order
Browse files Browse the repository at this point in the history
  • Loading branch information
coreydaley committed Aug 17, 2023
2 parents 9d25750 + 85123bf commit 9576551
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,8 @@ func TestMetricsHandler(t *testing.T) {
rr := httptest.NewRecorder()
// Need to create a router that we can pass the request through so that the vars will be added to the context
// To add the vars to the context,
// we need to create a router through which we can pass the request.
router := mux.NewRouter()
router.HandleFunc("/metrics/{type}", MetricsHandler)
router.ServeHTTP(rr, req)
Expand Down

0 comments on commit 9576551

Please sign in to comment.