diff --git a/fanout/reader_test.go b/fanout/reader_test.go index 6ad2361..87fb1a6 100644 --- a/fanout/reader_test.go +++ b/fanout/reader_test.go @@ -56,8 +56,8 @@ func TestFanoutRead(t *testing.T) { sum2str := hex.EncodeToString(sum2) sum3str := hex.EncodeToString(sum3) - if !(sum1str == sum2str && sum1str == sum3str) { - t.Errorf("Sum1 %s and sum2 %s and sum3 %s are not the same", sum1str, sum2str, sum3str) + if sum1str != sum2str || sum1str != sum3str { + t.Errorf("Sum1 %s, Sum2 %s, and Sum3 %s are not all the same", sum1str, sum2str, sum3str) } if sum1str != sha2sum { diff --git a/io/fileutils.go b/io/fileutils.go index 86c927a..75fa724 100644 --- a/io/fileutils.go +++ b/io/fileutils.go @@ -33,7 +33,7 @@ func CreateRandomLenFile(maxLen int, filesDir string, prefix string) string { panic(err) } defer created.Close() - //Check that the files were created with expected len + // Check that the files were created with expected len if created.Info.Size() != int64(len) { panic(fmt.Errorf("unexpected file length. Expected: %d, Got %d", created.Info.Size(), len)) }