X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ac2ea4ef187f7df369551a8cfa047fed8a1a2ba9..11f4d90ff07de3557a86d78cb8623ad059633d04:/lib/controller/rails_restart_test.go diff --git a/lib/controller/rails_restart_test.go b/lib/controller/rails_restart_test.go index bb307d3216..5db37c4b8a 100644 --- a/lib/controller/rails_restart_test.go +++ b/lib/controller/rails_restart_test.go @@ -75,7 +75,8 @@ func (s *railsRestartSuite) TestConfigReload(c *check.C) { // Wait for RailsAPI's 1 Hz reload_config thread to poll and // hit restart.txt - for deadline := time.Now().Add(10 * time.Second); time.Now().Before(deadline); time.Sleep(time.Second) { + pollstart := time.Now() + 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) c.Check(resp.StatusCode, check.Equals, http.StatusOK) @@ -85,5 +86,6 @@ func (s *railsRestartSuite) TestConfigReload(c *check.C) { break } } + c.Logf("waited %s for rails to restart", time.Now().Sub(pollstart)) c.Check(string(body), check.Matches, `(?ms).*`+newhash+`.*`) }