Skip to content

Commit c1af789

Browse files
Fix linter failures
1 parent bb73258 commit c1af789

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

template_test.go

Lines changed: 4 additions & 4 deletions
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

Lines changed: 2 additions & 2 deletions
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)