diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-01-17 15:59:29 -0700 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-01-17 15:59:29 -0700 |
commit | 2ef530daa47b301a40c1ee93cd43b8f36fc68c0b (patch) | |
tree | b9753719f5f0e5312bb5008d40f40247ce14e15a /gemini/roundtrip_test.go | |
parent | 30e21f8513d49661cb6e1583d301e34e898d48a9 (diff) |
pull request, response, handlers out of the gemini package
Diffstat (limited to 'gemini/roundtrip_test.go')
-rw-r--r-- | gemini/roundtrip_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
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()) } |