Skip to content

Commit 4edc190

Browse files
authored
Merge pull request #292 from HaraldNordgren/go_versions
Bump Go versions
2 parents d25795e + c1af789 commit 4edc190

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: go
22
go:
3-
- 1.9
3+
- "1.9"
4+
- "1.10"
5+
- "1.11"
46
install:
57
- make get-deps
68
script:

template_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func TestKeysEmpty(t *testing.T) {
7171
}
7272

7373
if len(input) != vk.Len() {
74-
t.Fatalf("Incorrect key count; expected %s, got %s", len(input), vk.Len())
74+
t.Fatalf("Incorrect key count; expected %d, got %d", len(input), vk.Len())
7575
}
7676
}
7777

@@ -269,11 +269,11 @@ func TestGroupByMulti(t *testing.T) {
269269
}
270270

271271
if len(groups["demo1.localhost"]) != 2 {
272-
t.Fatalf("expected 2 got %s", len(groups["demo1.localhost"]))
272+
t.Fatalf("expected 2 got %d", len(groups["demo1.localhost"]))
273273
}
274274

275275
if len(groups["demo2.localhost"]) != 1 {
276-
t.Fatalf("expected 1 got %s", len(groups["demo2.localhost"]))
276+
t.Fatalf("expected 1 got %d", len(groups["demo2.localhost"]))
277277
}
278278
if groups["demo2.localhost"][0].(RuntimeContainer).ID != "3" {
279279
t.Fatalf("expected 2 got %s", groups["demo2.localhost"][0].(RuntimeContainer).ID)
@@ -785,7 +785,7 @@ func TestJson(t *testing.T) {
785785
t.Fatal(err)
786786
}
787787
if len(decoded) != len(containers) {
788-
t.Fatal("Incorrect unmarshaled container count. Expected %d, got %d.", len(containers), len(decoded))
788+
t.Fatalf("Incorrect unmarshaled container count. Expected %d, got %d.", len(containers), len(decoded))
789789
}
790790
}
791791

utils_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestDockerHostEndpoint(t *testing.T) {
3030

3131
endpoint, err := GetEndpoint("")
3232
if err != nil {
33-
t.Fatal("%s", err)
33+
t.Fatalf("%s", err)
3434
}
3535

3636
if endpoint != "tcp://127.0.0.1:4243" {
@@ -48,7 +48,7 @@ func TestDockerFlagEndpoint(t *testing.T) {
4848
// flag value should override DOCKER_HOST and default value
4949
endpoint, err := GetEndpoint("tcp://127.0.0.1:5555")
5050
if err != nil {
51-
t.Fatal("%s", err)
51+
t.Fatalf("%s", err)
5252
}
5353
if endpoint != "tcp://127.0.0.1:5555" {
5454
t.Fatalf("Expected tcp://127.0.0.1:5555, got %s", endpoint)

0 commit comments

Comments
 (0)