X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/400210f8c9d8b111a3efdaa76c8be579ea5666cb..29e7c39df5bbe3eae5007b0e56eb93aace7728bd:/lib/service/cmd_test.go diff --git a/lib/service/cmd_test.go b/lib/service/cmd_test.go index ef047bc9da..4a984c9e78 100644 --- a/lib/service/cmd_test.go +++ b/lib/service/cmd_test.go @@ -16,8 +16,8 @@ import ( "testing" "time" - "git.curoverse.com/arvados.git/sdk/go/arvados" - "git.curoverse.com/arvados.git/sdk/go/ctxlog" + "git.arvados.org/arvados.git/sdk/go/arvados" + "git.arvados.org/arvados.git/sdk/go/ctxlog" "github.com/prometheus/client_golang/prometheus" check "gopkg.in/check.v1" ) @@ -107,6 +107,7 @@ Clusters: 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 @@ -135,6 +136,7 @@ type testHandler struct { 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")