Skip to content

Commit

Permalink
bonsai
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Dec 10, 2023
1 parent c7b2355 commit 48274e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ func TestGet(t *testing.T) {
ts.Close()
})
ts.Method(http.MethodGet).Path("/api/v1/users/1").Header("Content-Type", "application/json").ResponseString(http.StatusOK, `{"name":"alice"}`)
tc := ts.Client()

res, err := tc.Get("https://example.com/api/v1/users/1")
res, err := http.Get(ts.URL + "/api/v1/users/1")
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -67,9 +66,8 @@ func TestGet(t *testing.T) {
t.Cleanup(func() {
ts.Close()
})
tc := ts.Client()

res, err := tc.Get("https://example.com/api/v1/users/1")
res, err := http.Get(ts.URL + "/api/v1/users/1")
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 48274e2

Please sign in to comment.