Skip to content

Commit

Permalink
Merge pull request #292 from HaraldNordgren/go_versions
Browse files Browse the repository at this point in the history
Bump Go versions
  • Loading branch information
jwilder committed Oct 26, 2018
2 parents d25795e + c1af789 commit 4edc190
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: go
go:
- 1.9
- "1.9"
- "1.10"
- "1.11"
install:
- make get-deps
script:
Expand Down
8 changes: 4 additions & 4 deletions template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestKeysEmpty(t *testing.T) {
}

if len(input) != vk.Len() {
t.Fatalf("Incorrect key count; expected %s, got %s", len(input), vk.Len())
t.Fatalf("Incorrect key count; expected %d, got %d", len(input), vk.Len())
}
}

Expand Down Expand Up @@ -269,11 +269,11 @@ func TestGroupByMulti(t *testing.T) {
}

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

if len(groups["demo2.localhost"]) != 1 {
t.Fatalf("expected 1 got %s", len(groups["demo2.localhost"]))
t.Fatalf("expected 1 got %d", len(groups["demo2.localhost"]))
}
if groups["demo2.localhost"][0].(RuntimeContainer).ID != "3" {
t.Fatalf("expected 2 got %s", groups["demo2.localhost"][0].(RuntimeContainer).ID)
Expand Down Expand Up @@ -785,7 +785,7 @@ func TestJson(t *testing.T) {
t.Fatal(err)
}
if len(decoded) != len(containers) {
t.Fatal("Incorrect unmarshaled container count. Expected %d, got %d.", len(containers), len(decoded))
t.Fatalf("Incorrect unmarshaled container count. Expected %d, got %d.", len(containers), len(decoded))
}
}

Expand Down
4 changes: 2 additions & 2 deletions utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestDockerHostEndpoint(t *testing.T) {

endpoint, err := GetEndpoint("")
if err != nil {
t.Fatal("%s", err)
t.Fatalf("%s", err)
}

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

0 comments on commit 4edc190

Please sign in to comment.