X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/be28c5f528a93ee32eef4c1dc2d0872cb718b29f..4aa26076d2c7ed1f2a84ee0c5e9c63ab30ace530:/lib/controller/handler_test.go diff --git a/lib/controller/handler_test.go b/lib/controller/handler_test.go index 7d8266a85c..d12e4fa33d 100644 --- a/lib/controller/handler_test.go +++ b/lib/controller/handler_test.go @@ -294,6 +294,8 @@ func (s *HandlerSuite) CheckObjectType(c *check.C, url string, token string, ski } resp2, err := client.Get(s.cluster.Services.RailsAPI.ExternalURL.String() + url + "/?api_token=" + token) c.Check(err, check.Equals, nil) + c.Assert(resp2.StatusCode, check.Equals, http.StatusOK, + check.Commentf("Wasn't able to get data from the RailsAPI at %q", url)) defer resp2.Body.Close() db, err := ioutil.ReadAll(resp2.Body) c.Check(err, check.Equals, nil)