From 12af3f2e8fad65534b83260967ea7463df6ca652 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Tue, 1 Dec 2020 19:45:55 +0100 Subject: renamed and documented function --- reqres_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'reqres_test.go') 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) -- cgit v1.2.3