mirror of
https://github.com/coredns/coredns.git
synced 2025-12-08 03:15:41 -05:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user