Add k8s tags to related tests (#1018)

, so that `make test` will pass by default.

Also fixed several ineffassign and golint issues.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang 2017-09-01 10:21:05 -07:00 committed by Miek Gieben
parent 6493858893
commit 4b14243e9b
7 changed files with 19 additions and 8 deletions

View file

@ -42,6 +42,9 @@ func TestHealthReload(t *testing.T) {
t.Fatalf("Could not get health: %s", err)
}
body, err = ioutil.ReadAll(resp.Body)
if err != nil {
t.Fatalf("Could not get resp.Body: %s", err)
}
if x := string(body); x != "OK" {
t.Fatalf("Expect OK, got %s", x)
}