From f34351da0731a11316e2266d2aadd62554a5b867 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 13 Sep 2021 14:31:34 +0200 Subject: s/get-proof-by-hash/get-inclusion-proof --- pkg/instance/endpoint_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/instance/endpoint_test.go') diff --git a/pkg/instance/endpoint_test.go b/pkg/instance/endpoint_test.go index b138936..51ec0f4 100644 --- a/pkg/instance/endpoint_test.go +++ b/pkg/instance/endpoint_test.go @@ -502,7 +502,7 @@ func TestGetInclusionProof(t *testing.T) { } // Create HTTP request - url := types.EndpointGetProofByHash.Path("http://example.com", i.Prefix) + url := types.EndpointGetInclusionProof.Path("http://example.com", i.Prefix) req, err := http.NewRequest("POST", url, table.ascii) if err != nil { t.Fatalf("must create http request: %v", err) @@ -510,7 +510,7 @@ func TestGetInclusionProof(t *testing.T) { // Run HTTP request w := httptest.NewRecorder() - mustHandle(t, i, types.EndpointGetProofByHash).ServeHTTP(w, req) + mustHandle(t, i, types.EndpointGetInclusionProof).ServeHTTP(w, req) if got, want := w.Code, table.wantCode; got != want { t.Errorf("got HTTP status code %v but wanted %v in test %q", got, want, table.description) } -- cgit v1.2.3