From 1da59913e052cd419c4e43b4c7c6f569a94851bd Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Mon, 10 Feb 2020 15:40:47 -0300 Subject: [PATCH] 16141: Adds better message on test in failing situations. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- lib/controller/handler_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/controller/handler_test.go b/lib/controller/handler_test.go index fac2f8a825..f1d6f15e34 100644 --- a/lib/controller/handler_test.go +++ b/lib/controller/handler_test.go @@ -228,11 +228,12 @@ func (s *HandlerSuite) CheckObjectType(c *check.C, url string, token string, ski req.Header.Set("Authorization", "Bearer "+token) resp := httptest.NewRecorder() s.handler.ServeHTTP(resp, req) - c.Check(resp.Code, check.Equals, http.StatusOK) + c.Assert(resp.Code, check.Equals, http.StatusOK, + check.Commentf("Wasn't able to get data from the controller at %q", url)) err = json.Unmarshal(resp.Body.Bytes(), &proxied) c.Check(err, check.Equals, nil) - // Get collection directly from railsAPI + // Get collection directly from RailsAPI client := &http.Client{ Transport: &http.Transport{ TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, -- 2.30.2