aboutsummaryrefslogtreecommitdiff
path: root/pkg/instance/endpoint_test.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-09-13 14:31:34 +0200
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-09-13 14:31:34 +0200
commitf34351da0731a11316e2266d2aadd62554a5b867 (patch)
tree588a32ab99204db86d66bf6ece829b6a15bbbbea /pkg/instance/endpoint_test.go
parent5632bd67ed38625a8c8c372302aa7b19d163512e (diff)
s/get-proof-by-hash/get-inclusion-proof
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)
}