19972: Lint.
[arvados.git] / lib / dispatchcloud / dispatcher_test.go
index a9ed95c7c3b5f581c4e3a60776f0d5c207c34db9..7454b5784e54a8be36b5c4b027460b3bf72e3d08 100644 (file)
@@ -101,7 +101,9 @@ func (s *DispatcherSuite) SetUpTest(c *check.C) {
        arvadostest.SetServiceURL(&s.cluster.Services.Controller, "https://"+os.Getenv("ARVADOS_API_HOST")+"/")
 
        arvClient, err := arvados.NewClientFromConfig(s.cluster)
-       c.Check(err, check.IsNil)
+       c.Assert(err, check.IsNil)
+       // Disable auto-retry
+       arvClient.Timeout = 0
 
        s.error503Server = httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusServiceUnavailable) }))
        arvClient.Client = &http.Client{