aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-05-31 08:21:36 +0200
committerJakob Unterwurzacher2017-05-31 08:21:36 +0200
commitfc2a5f5ab0149d48b5d45a9af96799b07d802ae6 (patch)
treecf00985c123d50a0ece42805cd80056fa81551a4 /internal
parent1e598e96fcd2ef53ab2ee1e2b408e4ebe920e59b (diff)
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.
Diffstat (limited to 'internal')
-rw-r--r--internal/pathiv/pathiv_test.go2
1 files changed, 1 insertions, 1 deletions
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)