19972: Disable auto-retry in diagnostics and rpc.
[arvados.git] / lib / diagnostics / cmd.go
index ed963e1ef75b42439ed1e23fef7d11e9a62a695c..36dca86e59c2f284efcec4f7a0beb7dce6530974 100644 (file)
@@ -131,6 +131,7 @@ func (diag *diagnoser) dotest(id int, title string, fn func() error) {
 
 func (diag *diagnoser) runtests() {
        client := arvados.NewClientFromEnv()
+       client.Timeout = 0 // disable auto-retry, use context instead
 
        if client.APIHost == "" || client.AuthToken == "" {
                diag.errorf("ARVADOS_API_HOST and ARVADOS_API_TOKEN environment variables are not set -- aborting without running any tests")