integration/internal: format code with gofumpt
Formatting the code with https://github.com/mvdan/gofumpt Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
89a4e6b889
commit
9bd3e011e1
2 changed files with 2 additions and 3 deletions
|
@ -12,8 +12,8 @@ import (
|
|||
func HasHubConnectivity(t *testing.T) bool {
|
||||
t.Helper()
|
||||
// Set a timeout on the GET at 15s
|
||||
var timeout = 15 * time.Second
|
||||
var url = "https://hub.docker.com"
|
||||
timeout := 15 * time.Second
|
||||
url := "https://hub.docker.com"
|
||||
|
||||
client := http.Client{Timeout: timeout}
|
||||
resp, err := client.Get(url)
|
||||
|
|
|
@ -107,7 +107,6 @@ func JobComplete(client client.CommonAPIClient, service swarmtypes.Service) func
|
|||
tasks, err := client.TaskList(context.Background(), types.TaskListOptions{
|
||||
Filters: filter,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
poll.Error(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue