Переглянути джерело

integration/internal: format code with gofumpt

Formatting the code with https://github.com/mvdan/gofumpt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 3 роки тому
батько
коміт
9bd3e011e1

+ 2 - 2
integration/internal/requirement/requirement.go

@@ -12,8 +12,8 @@ import (
 func HasHubConnectivity(t *testing.T) bool {
 func HasHubConnectivity(t *testing.T) bool {
 	t.Helper()
 	t.Helper()
 	// Set a timeout on the GET at 15s
 	// 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}
 	client := http.Client{Timeout: timeout}
 	resp, err := client.Get(url)
 	resp, err := client.Get(url)

+ 0 - 1
integration/internal/swarm/states.go

@@ -107,7 +107,6 @@ func JobComplete(client client.CommonAPIClient, service swarmtypes.Service) func
 		tasks, err := client.TaskList(context.Background(), types.TaskListOptions{
 		tasks, err := client.TaskList(context.Background(), types.TaskListOptions{
 			Filters: filter,
 			Filters: filter,
 		})
 		})
-
 		if err != nil {
 		if err != nil {
 			poll.Error(err)
 			poll.Error(err)
 		}
 		}