diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-09-13 14:31:34 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-09-13 14:31:34 +0200 |
commit | f34351da0731a11316e2266d2aadd62554a5b867 (patch) | |
tree | 588a32ab99204db86d66bf6ece829b6a15bbbbea /pkg/instance/endpoint_test.go | |
parent | 5632bd67ed38625a8c8c372302aa7b19d163512e (diff) |
s/get-proof-by-hash/get-inclusion-proof
Diffstat (limited to 'pkg/instance/endpoint_test.go')
-rw-r--r-- | pkg/instance/endpoint_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |