diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-12-01 13:01:51 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-12-01 13:01:51 +0100 |
commit | f7af98fc6ef283155f94f4294a430d8e792b9a7b (patch) | |
tree | c52bc43012d14bd91413739d2d5e992e26c15d0e /reqres_test.go | |
parent | 868366cf35e2e649fe7265201d527dbb76bbaf68 (diff) |
removed explicit string function
Diffstat (limited to 'reqres_test.go')
-rw-r--r-- | reqres_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/reqres_test.go b/reqres_test.go index 8334bd7..fadfb73 100644 --- a/reqres_test.go +++ b/reqres_test.go @@ -66,7 +66,7 @@ func TestNewGetEntriesRequest(t *testing.T) { end: fmt.Sprintf("%d", testMaxRange-1), }, } { - url := strings.Join([]string{"http://example.com/", lp.Prefix, EndpointGetEntries.String()}, "/") + url := strings.Join([]string{"http://example.com/", lp.Prefix, string(EndpointGetEntries)}, "/") r, err := http.NewRequest("GET", url, nil) if err != nil { t.Fatalf("must make http request in test %q: %v", table.description, err) @@ -137,7 +137,7 @@ func TestNewGetProofByHashRequest(t *testing.T) { hash: b64(testNodeHash), }, } { - url := strings.Join([]string{"http://example.com/", lp.Prefix, EndpointGetProofByHash.String()}, "/") + url := strings.Join([]string{"http://example.com/", lp.Prefix, string(EndpointGetProofByHash)}, "/") r, err := http.NewRequest("GET", url, nil) if err != nil { t.Fatalf("must make http request in test %q: %v", table.description, err) @@ -202,7 +202,7 @@ func TestNewGetConsistencyProofRequest(t *testing.T) { second: "2", }, } { - url := strings.Join([]string{"http://example.com/", lp.Prefix, EndpointGetConsistencyProof.String()}, "/") + url := strings.Join([]string{"http://example.com/", lp.Prefix, string(EndpointGetConsistencyProof)}, "/") r, err := http.NewRequest("GET", url, nil) if err != nil { t.Fatalf("must make http request in test %q: %v", table.description, err) |