tests: better error message for TestBase64XattrRead

Make clear what we have and what we want.
This commit is contained in:
Jakob Unterwurzacher 2019-01-02 16:55:51 +01:00
parent 772afa93f9
commit 55a27a47df
1 changed files with 1 additions and 1 deletions

View File

@ -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)