service/s3/s3crypto: fix dropped test errors
This fixes three dropped err variables in the service/s3/s3crypto tests.
@@ -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 {
@@ -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 {
@@ -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 {
