Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add logs for mostRecent test #97

Merged
merged 1 commit into from
Oct 13, 2022
Merged

add logs for mostRecent test #97

merged 1 commit into from
Oct 13, 2022

Conversation

outscale-hmi
Copy link
Contributor

Signed-off-by: hanen mizouni hanen.mizouni@outscale.com

state := new(multistep.BasicStateBag)
accessConfig := &AccessConfig{}
accessConfig.RawRegion = "eu-west-2"
var oscConn *osc.APIClient
var err error
if oscConn, err = accessConfig.NewOSCClient(); err != nil {
return nil
err := fmt.Errorf("error in creating osc Client")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err, is already set by accessConfig.NewOSCClient(), maybe you shouln't unset it here.
Or as last reuse it:

 		err := fmt.Errorf("error in creating osc Client: %s", err.Error() )

if state == nil {
t.Fatalf("error retrieving state, but")
t.Fatalf("error retrieving state %s", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't you use err.Error() here ?

Signed-off-by: hanen mizouni <hanen.mizouni@outscale.com>
@outscale-hmi outscale-hmi merged commit 89acf2a into main Oct 13, 2022
@outscale-hmi outscale-hmi deleted the testUpdate branch October 13, 2022 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants