client: drop client timeout in tests
A timeout doesn't make sense on this level, because it is very difficult to estimate how long downloading rpm metadata takes. Drop it completely in favor of higher-level timeouts in the test runner. Fixes #601
This commit is contained in:
parent
d49f0fef44
commit
2ecdee6814
3 changed files with 3 additions and 8 deletions
|
|
@ -11,7 +11,6 @@ import (
|
|||
"net/http"
|
||||
"sort"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
|
||||
type TestState struct {
|
||||
|
|
@ -32,12 +31,10 @@ func isStringInSlice(slice []string, s string) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func setUpTestState(socketPath string, timeout time.Duration, unitTest bool) (*TestState, error) {
|
||||
func setUpTestState(socketPath string, unitTest bool) (*TestState, error) {
|
||||
state := TestState{unitTest: unitTest}
|
||||
|
||||
state.socket = &http.Client{
|
||||
// TODO This may be too short/simple for downloading images
|
||||
Timeout: timeout,
|
||||
Transport: &http.Transport{
|
||||
DialContext: func(_ context.Context, _, _ string) (net.Conn, error) {
|
||||
return net.Dial("unix", socketPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue