From 2ef530daa47b301a40c1ee93cd43b8f36fc68c0b Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 17 Jan 2023 15:59:29 -0700 Subject: pull request, response, handlers out of the gemini package --- gemini/roundtrip_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gemini/roundtrip_test.go') diff --git a/gemini/roundtrip_test.go b/gemini/roundtrip_test.go index 5dd61f1..326ffbc 100644 --- a/gemini/roundtrip_test.go +++ b/gemini/roundtrip_test.go @@ -9,6 +9,7 @@ import ( "net/url" "testing" + "tildegit.org/tjp/gus" "tildegit.org/tjp/gus/gemini" ) @@ -18,7 +19,7 @@ func TestRoundTrip(t *testing.T) { t.Fatalf("FileTLS(): %s", err.Error()) } - handler := func(ctx context.Context, req *gemini.Request) *gemini.Response { + handler := func(ctx context.Context, req *gus.Request) *gus.Response { return gemini.Success("text/gemini", bytes.NewBufferString("you've found my page")) } @@ -36,7 +37,7 @@ func TestRoundTrip(t *testing.T) { } cli := gemini.NewClient(testClientTLS()) - response, err := cli.RoundTrip(&gemini.Request{URL: u}) + response, err := cli.RoundTrip(&gus.Request{URL: u}) if err != nil { t.Fatalf("RoundTrip(): %s", err.Error()) } -- cgit v1.2.3