fix: add missing error check

Signed-off-by: Giorgia Fiscaletti <giorgiafiscaletti@gmail.com>
pull/12341/head
Giorgia Fiscaletti 10 months ago
parent 6c30fb90bf
commit b3a1eb246b

@ -111,7 +111,11 @@ func TestContainsSystemLabels(t *testing.T) {
func TestEncryptDecryptAES(t *testing.T) {
encryptionKey := make([]byte, 16)
_, _ = rand.Read(encryptionKey)
_, err := rand.Read(encryptionKey)
if err != nil {
t.Errorf("error generating test encryption key: %v", err)
return
}
plaintext := []byte("Dummy release data.")

Loading…
Cancel
Save