From c74af0bae74b4ac842b75ac969a3b86502c55d0d Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Mon, 20 Jul 2015 17:26:16 -0400 Subject: [PATCH] tar/asm: test was flipped --- tar/asm/assemble_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tar/asm/assemble_test.go b/tar/asm/assemble_test.go index b8a70ef..c3bda7a 100644 --- a/tar/asm/assemble_test.go +++ b/tar/asm/assemble_test.go @@ -102,11 +102,10 @@ func TestTarStreamMangledGetterPutter(t *testing.T) { rdr.Close() csum := c.Sum(nil) - if !bytes.Equal(csum, e.Entry.Payload) { - t.Errorf("wrote %d bytes. checksum %q: expected %v; got %v", + if bytes.Equal(csum, e.Entry.Payload) { + t.Errorf("wrote %d bytes. checksum for %q should not have matched! %v", i, e.Entry.Name, - e.Entry.Payload, csum) } }