fix(*): fix go vet issues

pull/517/head
Adam Reese 9 years ago
parent e6802c00bc
commit 8070b16cb6

@ -43,7 +43,8 @@ func TestDeployment(t *testing.T) {
&common.Deployment{
Name: "guestbook.yaml",
State: &common.DeploymentState{
common.FailedStatus, []string{"error message"},
Status: common.FailedStatus,
Errors: []string{"error message"},
},
},
"Name: guestbook.yaml\nStatus: Failed\nErrors:\n error message\n",

@ -187,7 +187,7 @@ func TestLoadTemplates(t *testing.T) {
}
if len(members) != len(files) {
t.Fatalf("Expected %s templates, got %d", len(files), len(members))
t.Fatalf("Expected %d templates, got %d", len(files), len(members))
}
root := c.loader.dir()

@ -90,7 +90,7 @@ func GeneralTest(t *testing.T, httpMeth string, url string, contentType string,
}
var data = w.Body.Bytes()
if w.Code != expStatus {
t.Fatalf("wrong status code:\nwant: %s\ngot: %s\ncontent: %s\n", expStatus, w.Code, data)
t.Fatalf("wrong status code:\nwant: %d\ngot: %d\ncontent: %s\n", expStatus, w.Code, data)
}
if expResponse != nil {
var response ServiceResponse

Loading…
Cancel
Save