1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 10:07:02 +00:00

Rename client.WithOptTransport (#464)

* Update apiv1_client_opts.go
* Update apiv1_client_test.go
This commit is contained in:
James Hillyerd
2024-01-25 10:06:35 -08:00
committed by GitHub
parent b5ccd3da51
commit 6d66012a0c
2 changed files with 3 additions and 3 deletions

View File

@@ -215,7 +215,7 @@ func TestClientV1GetMessageSource(t *testing.T) {
func TestClientV1WithCustomTransport(t *testing.T) {
// Call setup, passing a custom roundtripper and make sure it was used during the request.
mockRoundTripper := &mockRoundTripper{ResponseBody: "Custom Transport"}
c, router, teardown := setup(client.WithOptTransport(mockRoundTripper))
c, router, teardown := setup(client.WithTransport(mockRoundTripper))
defer teardown()