Skip to content

Commit 906c2d1

Browse files
committed
gofmt with go-1.11
gofmt/goimports changed some heuristics in 1.11 and the code is now formatted slightly differently. No functional change, just whitespace. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent 9412739 commit 906c2d1

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

cli/command/stack/swarm/deploy_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ func TestServiceUpdateResolveImageChanged(t *testing.T) {
7171
}{
7272
// Image not changed
7373
{
74-
image: "foobar:1.2.3",
74+
image: "foobar:1.2.3",
7575
expectedQueryRegistry: false,
7676
expectedImage: "foobar:1.2.3@sha256:deadbeef",
7777
expectedForceUpdate: 123,
7878
},
7979
// Image changed
8080
{
81-
image: "foobar:1.2.4",
81+
image: "foobar:1.2.4",
8282
expectedQueryRegistry: true,
8383
expectedImage: "foobar:1.2.4",
8484
expectedForceUpdate: 123,

opts/hosts_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ func TestParseDockerDaemonHost(t *testing.T) {
6969
"[::1]:5555/path": "tcp://[::1]:5555/path",
7070
"[0:0:0:0:0:0:0:1]:": "tcp://[0:0:0:0:0:0:0:1]:2375",
7171
"[0:0:0:0:0:0:0:1]:5555/path": "tcp://[0:0:0:0:0:0:0:1]:5555/path",
72-
":6666": fmt.Sprintf("tcp://%s:6666", DefaultHTTPHost),
73-
":6666/path": fmt.Sprintf("tcp://%s:6666/path", DefaultHTTPHost),
74-
"tcp://": DefaultTCPHost,
75-
"tcp://:7777": fmt.Sprintf("tcp://%s:7777", DefaultHTTPHost),
76-
"tcp://:7777/path": fmt.Sprintf("tcp://%s:7777/path", DefaultHTTPHost),
77-
"unix:///run/docker.sock": "unix:///run/docker.sock",
78-
"unix://": "unix://" + DefaultUnixSocket,
79-
"fd://": "fd://",
80-
"fd://something": "fd://something",
81-
"localhost:": "tcp://localhost:2375",
82-
"localhost:5555": "tcp://localhost:5555",
83-
"localhost:5555/path": "tcp://localhost:5555/path",
72+
":6666": fmt.Sprintf("tcp://%s:6666", DefaultHTTPHost),
73+
":6666/path": fmt.Sprintf("tcp://%s:6666/path", DefaultHTTPHost),
74+
"tcp://": DefaultTCPHost,
75+
"tcp://:7777": fmt.Sprintf("tcp://%s:7777", DefaultHTTPHost),
76+
"tcp://:7777/path": fmt.Sprintf("tcp://%s:7777/path", DefaultHTTPHost),
77+
"unix:///run/docker.sock": "unix:///run/docker.sock",
78+
"unix://": "unix://" + DefaultUnixSocket,
79+
"fd://": "fd://",
80+
"fd://something": "fd://something",
81+
"localhost:": "tcp://localhost:2375",
82+
"localhost:5555": "tcp://localhost:5555",
83+
"localhost:5555/path": "tcp://localhost:5555/path",
8484
}
8585
for invalidAddr, expectedError := range invalids {
8686
if addr, err := parseDockerDaemonHost(invalidAddr); err == nil || err.Error() != expectedError {

0 commit comments

Comments
 (0)