From 55a27a47dfb61cf553cf499802d614926b3b8a72 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 2 Jan 2019 16:55:51 +0100 Subject: tests: better error message for TestBase64XattrRead Make clear what we have and what we want. --- tests/xattr/xattr_integration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/xattr/xattr_integration_test.go b/tests/xattr/xattr_integration_test.go index 5c402cc..5eb5dd6 100644 --- a/tests/xattr/xattr_integration_test.go +++ b/tests/xattr/xattr_integration_test.go @@ -245,7 +245,7 @@ func TestBase64XattrRead(t *testing.T) { plainValue, err := xattr.LGet(plainFn, attrName2) if err != nil || string(plainValue) != attrValue { - t.Fatalf("Attribute binary value decryption error %s != %s %v", string(plainValue), attrValue, err) + t.Fatalf("Attribute binary value decryption error: have=%q want=%q err=%v", string(plainValue), attrValue, err) } encryptedAttrValue64 := base64.RawURLEncoding.EncodeToString(encryptedAttrValue) -- cgit v1.2.3