Skip to content

Commit 4082ca3

Browse files
committed
chore(logs): fix errors
1 parent 4eb4b67 commit 4082ca3

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

internal/cmd/logs/instance/update/update_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func TestBuildRequest(t *testing.T) {
240240
request := buildRequest(testCtx, tt.model, testClient)
241241

242242
diff := cmp.Diff(request, tt.expectedRequest,
243-
cmp.AllowUnexported(tt.expectedRequest),
243+
cmp.AllowUnexported(tt.expectedRequest, logs.DefaultAPIService{}),
244244
cmpopts.EquateComparable(testCtx),
245245
)
246246
if diff != "" {

internal/pkg/utils/utils_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,19 +327,15 @@ func TestMap(t *testing.T) {
327327
name: "default",
328328
args: args[string, *string]{
329329
input: []string{"foo", "bar"},
330-
mapFn: func(s string) *string {
331-
return Ptr(s)
332-
},
330+
mapFn: Ptr[string],
333331
},
334332
want: []*string{Ptr("foo"), Ptr("bar")},
335333
},
336334
{
337335
name: "input slice is nil",
338336
args: args[string, *string]{
339337
input: nil,
340-
mapFn: func(s string) *string {
341-
return Ptr(s)
342-
},
338+
mapFn: Ptr[string],
343339
},
344340
want: []*string{},
345341
},

0 commit comments

Comments
 (0)