Skip to content

Commit

Permalink
Fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dimuon committed Aug 14, 2023
1 parent 56041ae commit e4fa69d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/api/apierror/unwrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TestUnwrap(t *testing.T) {
},
{
name: "Is able to parse a type that encapsulates another unknown type",
args: args{err: &deployments.DeleteDeploymentStatelessResourceRetryWith{
args: args{err: &deployments.DeleteDeploymentStatelessResourceBadRequest{
Payload: &models.BasicFailedReply{
Errors: []*models.BasicFailedReplyElement{
{
Expand Down Expand Up @@ -132,7 +132,7 @@ func TestUnwrap(t *testing.T) {
},
{
name: "Is able to parse a type that encapsulates a BasicFailedReply with fields",
args: args{err: &deployments.DeleteDeploymentStatelessResourceRetryWith{
args: args{err: &deployments.DeleteDeploymentStatelessResourceBadRequest{
Payload: &models.BasicFailedReply{
Errors: []*models.BasicFailedReplyElement{
{
Expand Down
6 changes: 3 additions & 3 deletions pkg/api/platformapi/instanceconfigapi/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestCreate(t *testing.T) {
tests := []struct {
name string
args args
want *models.IDResponse
want *models.VersionedIDResponse
err string
}{
{
Expand Down Expand Up @@ -77,7 +77,7 @@ func TestCreate(t *testing.T) {
},
},
}},
want: &models.IDResponse{ID: ec.String("an autogenerated id")},
want: &models.VersionedIDResponse{ID: ec.String("an autogenerated id")},
},
{
name: "Create Succeeds specifying an instance configuration ID",
Expand Down Expand Up @@ -115,7 +115,7 @@ func TestCreate(t *testing.T) {
},
}},
},
want: &models.IDResponse{ID: ec.String("kibana")},
want: &models.VersionedIDResponse{ID: ec.String("kibana")},
},
{
name: "Create fails on API error",
Expand Down
2 changes: 1 addition & 1 deletion pkg/multierror/format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func TestJSONFormatFunc(t *testing.T) {
errors.New("some"),
errors.New("some 2"),
errors.New("some 3"),
&deployments.DeleteDeploymentStatelessResourceRetryWith{
&deployments.DeleteDeploymentStatelessResourceBadRequest{
Payload: &models.BasicFailedReply{
Errors: []*models.BasicFailedReplyElement{
{
Expand Down

0 comments on commit e4fa69d

Please sign in to comment.