@@ -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
0 commit comments