Fixes golint errors in pkg/controller

This commit is contained in:
Yuki Sonoda (Yugui)
2014-07-10 20:47:10 +09:00
parent 820b67e41f
commit 056f871bed
2 changed files with 10 additions and 8 deletions

View File

@@ -41,7 +41,7 @@ func expectNoError(t *testing.T, err error) {
}
}
func makeUrl(suffix string) string {
func makeURL(suffix string) string {
return apiPath + suffix
}
@@ -205,7 +205,7 @@ func TestCreateReplica(t *testing.T) {
// DesiredState: controllerSpec.DesiredState.PodTemplate.DesiredState,
//}
// TODO: fix this so that it validates the body.
fakeHandler.ValidateRequest(t, makeUrl("/pods"), "POST", nil)
fakeHandler.ValidateRequest(t, makeURL("/pods"), "POST", nil)
}
func TestHandleWatchResponseNotSet(t *testing.T) {