Skip to content

Commit

Permalink
fix: add error debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferenc Sárai committed Jul 19, 2024
1 parent f67bd3a commit 8f3b2a8
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions pkg/check/act/act.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,20 @@ func (c *Check) Run(ctx context.Context, cluster orchestration.Cluster, opts int

// list grantees after patch
patchAddresses, patchErr := upClient.GetActGrantees(ctx, pFile.Address())
if patchErr != nil {
return fmt.Errorf("node %s: GetActGrantees after patch: %w", upNodeName, patchErr)
}
if patchAddresses == nil {
return fmt.Errorf("node %s: GetActGrantees after patch: addresses is nil", upNodeName)
}
if len(addresses) != 2 {
return fmt.Errorf("node %s: GetActGrantees after patch: addresses length is not 2", upNodeName)
}

c.logger.Info("ACT test completed")

return
c.logger.Errorf("-----patchAddresses: %+v", patchAddresses)
return fmt.Errorf("-----patchErr: %+v", patchErr)
/*
if patchErr != nil {
return fmt.Errorf("node %s: GetActGrantees after patch: %w", upNodeName, patchErr)
}
if patchAddresses == nil {
return fmt.Errorf("node %s: GetActGrantees after patch: addresses is nil", upNodeName)
}
if len(addresses) != 2 {
return fmt.Errorf("node %s: GetActGrantees after patch: addresses length is not 2", upNodeName)
}
c.logger.Info("ACT test completed")
return*/
}

0 comments on commit 8f3b2a8

Please sign in to comment.