Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integration/e2e/composite_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NewCompositeHTTPService(services ...*HTTPService) *CompositeHTTPService {
retryBackoff: backoff.New(context.Background(), backoff.Config{
MinBackoff: 300 * time.Millisecond,
MaxBackoff: 600 * time.Millisecond,
MaxRetries: 50, // Sometimes the CI is slow ¯\_(ツ)_/¯
MaxRetries: 100, // Sometimes the CI is slow ¯\_(ツ)_/¯
}),
}
}
Expand Down
4 changes: 2 additions & 2 deletions integration/e2e/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func NewConcreteService(
retryBackoff: backoff.New(context.Background(), backoff.Config{
MinBackoff: 300 * time.Millisecond,
MaxBackoff: 600 * time.Millisecond,
MaxRetries: 50, // Sometimes the CI is slow ¯\_(ツ)_/¯
MaxRetries: 100, // Sometimes the CI is slow ¯\_(ツ)_/¯
}),
}
}
Expand Down Expand Up @@ -476,7 +476,7 @@ func (p *TCPReadinessProbe) Ready(service *ConcreteService) (err error) {
return errors.New("service has stopped")
}

conn, err := net.DialTimeout("tcp", endpoint, time.Second)
conn, err := net.DialTimeout("tcp", endpoint, 5*time.Second)
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions integration/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ func BuildArgs(flags map[string]string) []string {
}

func GetRequest(url string) (*http.Response, error) {
const timeout = 1 * time.Second
const timeout = 5 * time.Second

client := &http.Client{Timeout: timeout}
return client.Get(url)
}

func PostRequest(url string) (*http.Response, error) {
const timeout = 1 * time.Second
const timeout = 5 * time.Second

client := &http.Client{Timeout: timeout}
return client.Post(url, "", strings.NewReader(""))
Expand Down
Loading