projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
16636: fix logic bug in (*Scheduler) updateMetrics()
[arvados.git]
/
lib
/
service
/
cmd_test.go
diff --git
a/lib/service/cmd_test.go
b/lib/service/cmd_test.go
index 86039c4dd1fa111d2de292676f4773c9bdc203a1..4a984c9e780a9fba5bca0ff3d964e972ec2eb728 100644
(file)
--- a/
lib/service/cmd_test.go
+++ b/
lib/service/cmd_test.go
@@
-107,6
+107,7
@@
Clusters:
continue
}
body, err := ioutil.ReadAll(resp.Body)
continue
}
body, err := ioutil.ReadAll(resp.Body)
+ c.Check(err, check.IsNil)
c.Logf("status %d, body %s", resp.StatusCode, string(body))
c.Check(resp.StatusCode, check.Equals, http.StatusOK)
break
c.Logf("status %d, body %s", resp.StatusCode, string(body))
c.Check(resp.StatusCode, check.Equals, http.StatusOK)
break
@@
-135,6
+136,7
@@
type testHandler struct {
healthCheck chan bool
}
healthCheck chan bool
}
+func (th *testHandler) Done() <-chan struct{} { return nil }
func (th *testHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { th.handler.ServeHTTP(w, r) }
func (th *testHandler) CheckHealth() error {
ctxlog.FromContext(th.ctx).Info("CheckHealth called")
func (th *testHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { th.handler.ServeHTTP(w, r) }
func (th *testHandler) CheckHealth() error {
ctxlog.FromContext(th.ctx).Info("CheckHealth called")