Skip to content

Commit 6118f9d

Browse files
committed
chore(logs): fix test
1 parent e963496 commit 6118f9d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/cmd/logs/instance/list/list_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222
type testCtxKey struct{}
2323

2424
var testCtx = context.WithValue(context.Background(), testCtxKey{}, "foo")
25-
var testClient = &logs.APIClient{}
25+
var testClient = &logs.APIClient{DefaultAPI: &logs.DefaultAPIService{}}
2626
var testProjectId = uuid.NewString()
2727

2828
func fixtureFlagValues(mods ...func(flagValues map[string]string)) map[string]string {
@@ -142,7 +142,7 @@ func TestBuildRequest(t *testing.T) {
142142

143143
diff := cmp.Diff(request, tt.expectedRequest,
144144
cmp.AllowUnexported(tt.expectedRequest),
145-
cmpopts.EquateComparable(testCtx),
145+
cmpopts.EquateComparable(testCtx, tt.expectedRequest),
146146
)
147147
if diff != "" {
148148
t.Fatalf("Data does not match: %s", diff)

0 commit comments

Comments
 (0)