Signed-off-by: Antonio Murdaca <runcom@linux.com>
| ... | ... |
@@ -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 |
} |