diff --git a/controllers/medusa/medusaconfiguration_controller_test.go b/controllers/medusa/medusaconfiguration_controller_test.go index 78205d361..480a9ac2b 100644 --- a/controllers/medusa/medusaconfiguration_controller_test.go +++ b/controllers/medusa/medusaconfiguration_controller_test.go @@ -67,7 +67,7 @@ func testMedusaConfigurationOk(t *testing.T, ctx context.Context, f *framework.F return false } updatedSecret := &corev1.Secret{} - err = f.Client.Get(ctx, types.NamespacedName{Name: "medusa-bucket-key", Namespace: namespace}, updatedSecret) + require.NoError(f.Client.Get(ctx, types.NamespacedName{Name: "medusa-bucket-key", Namespace: namespace}, updatedSecret)) //Ensure that the unique label has been added to the secret. if bucketKeySecret.Labels[MedusaStorageSecretIdentifierLabel] != utils.HashNameNamespace(bucketKeySecret.Name, bucketKeySecret.Namespace) { return false