@@ -5,12 +5,12 @@ import (
55 "strconv"
66 "testing"
77
8+ "github.com/google/go-cmp/cmp/cmpopts"
89 "github.com/stackitcloud/stackit-cli/internal/cmd/params"
910 "github.com/stackitcloud/stackit-cli/internal/pkg/globalflags"
1011 "github.com/stackitcloud/stackit-cli/internal/pkg/print"
1112
1213 "github.com/google/go-cmp/cmp"
13- "github.com/google/go-cmp/cmp/cmpopts"
1414 "github.com/google/uuid"
1515 "github.com/stackitcloud/stackit-sdk-go/services/alb"
1616)
@@ -49,7 +49,7 @@ func fixtureInputModel(mods ...func(model *inputModel)) *inputModel {
4949}
5050
5151func fixtureRequest (mods ... func (request * alb.ApiListLoadBalancersRequest )) alb.ApiListLoadBalancersRequest {
52- request := testClient .ListLoadBalancers (context . Background () , testProjectId , testRegion )
52+ request := testClient .ListLoadBalancers (testCtx , testProjectId , testRegion )
5353 for _ , mod := range mods {
5454 mod (& request )
5555 }
@@ -160,7 +160,6 @@ func TestBuildRequest(t *testing.T) {
160160 diff := cmp .Diff (request , tt .expectedRequest ,
161161 cmp .AllowUnexported (tt .expectedRequest ),
162162 cmpopts .EquateComparable (testCtx ),
163- cmpopts .IgnoreFields (alb.ApiListLoadBalancersRequest {}, "ctx" ),
164163 )
165164 if diff != "" {
166165 t .Fatalf ("Data does not match: %s" , diff )
0 commit comments