aboutsummaryrefslogtreecommitdiff
path: root/pkg/instance/endpoint_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/instance/endpoint_test.go')
-rw-r--r--pkg/instance/endpoint_test.go4
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)
}