Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lubedacht committed Jun 11, 2024
1 parent 97135fb commit ecce5de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions internal/service/cloud/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ package cloud

import (
"fmt"
"github.com/google/go-cmp/cmp"
"github.com/stretchr/testify/mock"
"net/http"
"path"
"testing"

"github.com/google/go-cmp/cmp"
sdk "github.com/ionos-cloud/sdk-go/v6"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -494,7 +494,6 @@ func ignoreBootstrapData(expected sdk.ServerEntities) func(sdk.ServerEntities) b
items := entities.GetVolumes().GetItems()
for i := range ptr.Deref(items, []sdk.Volume{}) {
(*items)[i].GetProperties().UserData = nil

}
return cmp.Diff(expected, entities) == ""
}
Expand Down
2 changes: 1 addition & 1 deletion internal/service/cloud/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func (s *ServiceTestSuite) defaultServerComponents() (sdk.ServerProperties, sdk.
Type: ptr.To(m.Spec.Type.String()),
}

lanID, _ := strconv.Atoi(exampleLANID)
lanID, _ := strconv.ParseInt(exampleLANID, 10, 32)

entities := sdk.ServerEntities{
Nics: &sdk.Nics{Items: &[]sdk.Nic{{
Expand Down

0 comments on commit ecce5de

Please sign in to comment.