Cleanup of api path creation in client tests.

Cleanup in client tests: use testapi.ResourcePathWithPrefix function instead of manually create api path.
This commit is contained in:
Jerzy Szczepkowski
2015-08-18 10:04:54 +02:00
parent b5a4a548df
commit 40b121b64c
6 changed files with 6 additions and 6 deletions

View File

@@ -203,7 +203,7 @@ func TestLimitRangeWatch(t *testing.T) {
c := &testClient{
Request: testRequest{
Method: "GET",
Path: "/api/" + testapi.Version() + "/watch/" + getLimitRangesResourceName(),
Path: testapi.ResourcePathWithPrefix("watch", getLimitRangesResourceName(), "", ""),
Query: url.Values{"resourceVersion": []string{}}},
Response: Response{StatusCode: 200},
}