From fc2a5f5ab0149d48b5d45a9af96799b07d802ae6 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 31 May 2017 08:21:36 +0200 Subject: [PATCH] pathiv: fix test failure on Go 1.6 Travis failed on Go 1.6.3 with this error: internal/pathiv/pathiv_test.go:20: no args in Error call This change should solve the problem and provides a better error message on (real) test failure. --- internal/pathiv/pathiv_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pathiv/pathiv_test.go b/internal/pathiv/pathiv_test.go index 0cecba1..96745bd 100644 --- a/internal/pathiv/pathiv_test.go +++ b/internal/pathiv/pathiv_test.go @@ -17,7 +17,7 @@ func TestBlockIV(t *testing.T) { b27 := BlockIV(b0, 0x27) expected, _ := hex.DecodeString("00000000000000000000000000000027") if !bytes.Equal(b27, expected) { - t.Error() + t.Errorf("\nhave=%s\nwant=%s", hex.EncodeToString(b27), hex.EncodeToString(expected)) } bff := bytes.Repeat([]byte{0xff}, 16) b28 := BlockIV(bff, 0x28)