Skip to content

Commit

Permalink
Raise default timeout for cases like generation of the google site index
Browse files Browse the repository at this point in the history
  • Loading branch information
Dino Omanovic committed Jul 15, 2016
1 parent d806d78 commit 8f6d166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composition/fetch_definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var ForwardResponseHeaders = []string{
"WWW-Authenticate"}

const (
DefaultTimeout time.Duration = 10 * time.Second
DefaultTimeout time.Duration = 40 * time.Second
FileURLPrefix = "file://"
)

Expand Down
2 changes: 1 addition & 1 deletion composition/fetch_definition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func Test_FetchDefinition_NewFetchDefinitionFromRequest(t *testing.T) {

fd := NewFetchDefinitionFromRequest("http://upstream:8080/", r)
a.Equal("http://upstream:8080/content?foo=bar", fd.URL)
a.Equal(10*time.Second, fd.Timeout)
a.Equal(40*time.Second, fd.Timeout)
a.Equal(true, fd.Required)

a.Equal("text/html", fd.Header.Get("Content-Type"))
Expand Down

0 comments on commit 8f6d166

Please sign in to comment.