Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Fix tests that weren't compiling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Pharr committed Mar 11, 2015
1 parent b88cbe6 commit 16a73f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bytecounter_test.go
Expand Up @@ -43,7 +43,7 @@ func TestMultipleReadsAccumlateBytesCorrectly(t *testing.T) {
read, err = bcr.Read(oneByte)
}

expectedByteCount := 6
expectedByteCount := int64(6)
if bcr.bytesRead != expectedByteCount {
t.Fatalf("The byte counting reader should have accumulated %d bytes, but accumulated %d",
expectedByteCount, bcr.bytesRead)
Expand Down Expand Up @@ -92,7 +92,7 @@ func TestByteCountingReaderCanAccumulateFromDifferentReaders(t *testing.T) {
read, _ = bcr.Read(buffer)
}

expectedAccumulatedBytes := 14
expectedAccumulatedBytes := int64(14)
if expectedAccumulatedBytes != bcr.bytesRead {
t.Fatalf("Expected ByteCountingReader to have read %d byte[s], but read %d byte[s]",
expectedAccumulatedBytes, bcr.bytesRead)
Expand Down

0 comments on commit 16a73f7

Please sign in to comment.