From 9552beac6dcd70bf8dde291c35e87ce214118a66 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Mon, 29 Jan 2024 16:17:51 +0100 Subject: [PATCH] refactor: test arg in path alone --- handler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler_test.go b/handler_test.go index fc5df68..959bc31 100644 --- a/handler_test.go +++ b/handler_test.go @@ -54,7 +54,7 @@ func TestRPCRedirectsToKubo(t *testing.T) { tests := []rpcRedirectTest{ {"/api/v0/name/resolve?arg=some-arg", "http://example.com/api/v0/name/resolve?arg=some-arg", http.StatusTemporaryRedirect}, - {"/api/v0/name/resolve/ipfs.io?arg=some-arg", "http://example.com/api/v0/name/resolve/ipfs.io?arg=some-arg", http.StatusTemporaryRedirect}, + {"/api/v0/name/resolve/some-arg", "http://example.com/api/v0/name/resolve/some-arg", http.StatusTemporaryRedirect}, {"/api/v0/resolve?arg=some-arg", "http://example.com/api/v0/resolve?arg=some-arg", http.StatusTemporaryRedirect}, {"/api/v0/dag/resolve?arg=some-arg", "http://example.com/api/v0/dag/resolve?arg=some-arg", http.StatusTemporaryRedirect}, {"/api/v0/dns?arg=some-arg", "http://example.com/api/v0/dns?arg=some-arg", http.StatusTemporaryRedirect},