aboutsummaryrefslogtreecommitdiff
path: root/reqres_test.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-12-01 19:45:55 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-12-01 19:45:55 +0100
commit12af3f2e8fad65534b83260967ea7463df6ca652 (patch)
tree97aab78be87e0c62bf6498011f8b041d859566c9 /reqres_test.go
parent6cd12911f4d3aa4c6a75c922f9de231e2cf309dd (diff)
renamed and documented function
Diffstat (limited to 'reqres_test.go')
-rw-r--r--reqres_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/reqres_test.go b/reqres_test.go
index 1bb0348..3574750 100644
--- a/reqres_test.go
+++ b/reqres_test.go
@@ -65,7 +65,7 @@ func TestNewGetEntriesRequest(t *testing.T) {
end: fmt.Sprintf("%d", testMaxRange-1),
},
} {
- url := EndpointGetEntries.Url("http://example.com/", lp.Prefix)
+ url := EndpointGetEntries.Path("http://example.com/", lp.Prefix)
r, err := http.NewRequest("GET", url, nil)
if err != nil {
t.Fatalf("must make http request in test %q: %v", table.description, err)
@@ -136,7 +136,7 @@ func TestNewGetProofByHashRequest(t *testing.T) {
hash: b64(testNodeHash),
},
} {
- url := EndpointGetProofByHash.Url("http://example.com/", lp.Prefix)
+ url := EndpointGetProofByHash.Path("http://example.com/", lp.Prefix)
r, err := http.NewRequest("GET", url, nil)
if err != nil {
t.Fatalf("must make http request in test %q: %v", table.description, err)
@@ -201,7 +201,7 @@ func TestNewGetConsistencyProofRequest(t *testing.T) {
second: "2",
},
} {
- url := EndpointGetConsistencyProof.Url("http://example.com/", lp.Prefix)
+ url := EndpointGetConsistencyProof.Path("http://example.com/", lp.Prefix)
r, err := http.NewRequest("GET", url, nil)
if err != nil {
t.Fatalf("must make http request in test %q: %v", table.description, err)