projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '21815-trigrams-exclude-ids'
[arvados.git]
/
lib
/
controller
/
rails_restart_test.go
diff --git
a/lib/controller/rails_restart_test.go
b/lib/controller/rails_restart_test.go
index 5db37c4b8a374e01dbbe36fe5f11b3dbf259da44..e3267c220f25ed776d14093dfef9d2dd508e2c26 100644
(file)
--- a/
lib/controller/rails_restart_test.go
+++ b/
lib/controller/rails_restart_test.go
@@
-79,9
+79,11
@@
func (s *railsRestartSuite) TestConfigReload(c *check.C) {
for deadline := time.Now().Add(20 * time.Second); time.Now().Before(deadline); time.Sleep(time.Second) {
resp, err = hc.Do(req)
c.Assert(err, check.IsNil)
for deadline := time.Now().Add(20 * time.Second); time.Now().Before(deadline); time.Sleep(time.Second) {
resp, err = hc.Do(req)
c.Assert(err, check.IsNil)
+ defer resp.Body.Close()
c.Check(resp.StatusCode, check.Equals, http.StatusOK)
body, err = ioutil.ReadAll(resp.Body)
c.Assert(err, check.IsNil)
c.Check(resp.StatusCode, check.Equals, http.StatusOK)
body, err = ioutil.ReadAll(resp.Body)
c.Assert(err, check.IsNil)
+ resp.Body.Close()
if strings.Contains(string(body), newhash) {
break
}
if strings.Contains(string(body), newhash) {
break
}