Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Thomson committed Jun 27, 2022
1 parent c93ec43 commit dd6284f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/generate/code/set_sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ func TestSetSDK_Elasticache_ReplicationGroup_Create(t *testing.T) {
if r.ko.Spec.AuthToken != nil {
tmpSecret, err := rm.rr.SecretValueFromReference(ctx, r.ko.Spec.AuthToken)
if err != nil {
return nil, err
return nil, ackrequeue.Needed(err)
}
if tmpSecret != "" {
res.SetAuthToken(tmpSecret)
Expand Down Expand Up @@ -1225,7 +1225,7 @@ func TestSetSDK_Elasticache_ReplicationGroup_Update_Override_Values(t *testing.T
if r.ko.Spec.AuthToken != nil {
tmpSecret, err := rm.rr.SecretValueFromReference(ctx, r.ko.Spec.AuthToken)
if err != nil {
return nil, err
return nil, ackrequeue.Needed(err)
}
if tmpSecret != "" {
res.SetAuthToken(tmpSecret)
Expand Down Expand Up @@ -1347,7 +1347,7 @@ func TestSetSDK_Elasticache_User_Create_Override_Values(t *testing.T) {
if f3iter != nil {
tmpSecret, err := rm.rr.SecretValueFromReference(ctx, f3iter)
if err != nil {
return nil, err
return nil, ackrequeue.Needed(err)
}
if tmpSecret != "" {
f3elem = tmpSecret
Expand Down Expand Up @@ -1974,7 +1974,7 @@ func TestSetSDK_MQ_Broker_Create(t *testing.T) {
if f18iter.Password != nil {
tmpSecret, err := rm.rr.SecretValueFromReference(ctx, f18iter.Password)
if err != nil {
return nil, err
return nil, ackrequeue.Needed(err)
}
if tmpSecret != "" {
f18elem.SetPassword(tmpSecret)
Expand Down

0 comments on commit dd6284f

Please sign in to comment.