Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ populate your `go.mod` with the latest httpmock release, now
```go
func TestFetchArticles(t *testing.T) {
httpmock.Activate()
defer httpmock.DeactivateAndReset()
t.Cleanup(httpmock.DeactivateAndReset)

// Exact URL match
httpmock.RegisterResponder("GET", "https://api.mybiz.com/articles",
Expand Down Expand Up @@ -52,7 +52,7 @@ func TestFetchArticles(t *testing.T) {
```go
func TestFetchArticles(t *testing.T) {
httpmock.Activate()
defer httpmock.DeactivateAndReset()
t.Cleanup(httpmock.DeactivateAndReset)

// our database of articles
articles := make([]map[string]interface{}, 0)
Expand Down
Loading