Skip to content

Commit

Permalink
service/s3/s3crypto: fix dropped test errors (#4265)
Browse files Browse the repository at this point in the history
This fixes three dropped err variables in the service/s3/s3crypto tests.
  • Loading branch information
alrs committed Feb 3, 2022
1 parent b5784eb commit d830973
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions service/s3/s3crypto/cipher_util_test.go
Expand Up @@ -135,6 +135,10 @@ func TestCEKFactory(t *testing.T) {
MatDesc: `{"kms_cmk_id":""}`,
}
wrap, err := wrapFromEnvelope(o, env)
if err != nil {
t.Errorf("expected no error, but received %v", err)
}

cek, err := cekFromEnvelope(o, aws.BackgroundContext(), env, wrap)

if err != nil {
Expand Down Expand Up @@ -195,6 +199,10 @@ func TestCEKFactoryNoCEK(t *testing.T) {
MatDesc: `{"kms_cmk_id":""}`,
}
wrap, err := wrapFromEnvelope(o, env)
if err != nil {
t.Errorf("expected no error, but received %v", err)
}

cek, err := cekFromEnvelope(o, aws.BackgroundContext(), env, wrap)

if err == nil {
Expand Down Expand Up @@ -251,6 +259,10 @@ func TestCEKFactoryCustomEntry(t *testing.T) {
MatDesc: `{"kms_cmk_id":""}`,
}
wrap, err := wrapFromEnvelope(o, env)
if err != nil {
t.Errorf("expected no error, but received %v", err)
}

cek, err := cekFromEnvelope(o, aws.BackgroundContext(), env, wrap)

if err != nil {
Expand Down

0 comments on commit d830973

Please sign in to comment.