tests: better error message for TestBase64XattrRead
Make clear what we have and what we want.
This commit is contained in:
parent
772afa93f9
commit
55a27a47df
|
@ -245,7 +245,7 @@ func TestBase64XattrRead(t *testing.T) {
|
||||||
plainValue, err := xattr.LGet(plainFn, attrName2)
|
plainValue, err := xattr.LGet(plainFn, attrName2)
|
||||||
|
|
||||||
if err != nil || string(plainValue) != attrValue {
|
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)
|
encryptedAttrValue64 := base64.RawURLEncoding.EncodeToString(encryptedAttrValue)
|
||||||
|
|
Loading…
Reference in New Issue