update not same call

This commit is contained in:
Caleb Doxsey 2024-12-02 12:36:33 -07:00
parent 8b543dedd9
commit 2c44631c9a

View file

@ -49,10 +49,8 @@ func TestKeyEncryptionKey(t *testing.T) {
private, err := GenerateKeyEncryptionKey()
require.NoError(t, err)
assert.Equal(t, private.data[:], private.KeyBytes())
assert.NotSame(t, private.data[:], private.KeyBytes())
public := private.Public()
assert.Equal(t, public.data[:], public.KeyBytes())
assert.NotSame(t, public.data[:], public.KeyBytes())
})
t.Run("GetKeyEncryptionKeyID", func(t *testing.T) {
id := GetKeyEncryptionKeyID([]byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31})