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:
parent
6493858893
commit
4b14243e9b
7 changed files with 19 additions and 8 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue