We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6eb813e commit 8705bb3Copy full SHA for 8705bb3
README.md
@@ -24,7 +24,7 @@ populate your `go.mod` with the latest httpmock release, now
24
```go
25
func TestFetchArticles(t *testing.T) {
26
httpmock.Activate()
27
- defer httpmock.DeactivateAndReset()
+ t.Cleanup(httpmock.DeactivateAndReset)
28
29
// Exact URL match
30
httpmock.RegisterResponder("GET", "https://api.mybiz.com/articles",
@@ -52,7 +52,7 @@ func TestFetchArticles(t *testing.T) {
52
53
54
55
56
57
// our database of articles
58
articles := make([]map[string]interface{}, 0)
0 commit comments