Browse code

pkg: integration: utils_test: fix int format

Signed-off-by: Antonio Murdaca <runcom@linux.com>

Antonio Murdaca authored on 2015/09/20 09:39:44
Showing 1 changed files
... ...
@@ -355,7 +355,7 @@ func TestRandomUnixTmpDirPath(t *testing.T) {
355 355
 	}
356 356
 }
357 357
 
358
-func TestConsumeWithSpeedWith(t *testing.T) {
358
+func TestConsumeWithSpeed(t *testing.T) {
359 359
 	reader := strings.NewReader("1234567890")
360 360
 	chunksize := 2
361 361
 
... ...
@@ -365,7 +365,7 @@ func TestConsumeWithSpeedWith(t *testing.T) {
365 365
 	}
366 366
 
367 367
 	if bytes1 != 10 {
368
-		t.Fatalf("Expected to have read 10 bytes, got %s", bytes1)
368
+		t.Fatalf("Expected to have read 10 bytes, got %d", bytes1)
369 369
 	}
370 370
 
371 371
 }
... ...
@@ -387,7 +387,7 @@ func TestConsumeWithSpeedWithStop(t *testing.T) {
387 387
 	}
388 388
 
389 389
 	if bytes1 != 2 {
390
-		t.Fatalf("Expected to have read 2 bytes, got %s", bytes1)
390
+		t.Fatalf("Expected to have read 2 bytes, got %d", bytes1)
391 391
 	}
392 392
 
393 393
 }