Skip to content

Commit 1388d95

Browse files
committed
chore(logs): fix errors
1 parent 56a0c92 commit 1388d95

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
@@ -379,19 +379,15 @@ func TestMap(t *testing.T) {
379379
name: "default",
380380
args: args[string, *string]{
381381
input: []string{"foo", "bar"},
382-
mapFn: func(s string) *string {
383-
return Ptr(s)
384-
},
382+
mapFn: Ptr[string],
385383
},
386384
want: []*string{Ptr("foo"), Ptr("bar")},
387385
},
388386
{
389387
name: "input slice is nil",
390388
args: args[string, *string]{
391389
input: nil,
392-
mapFn: func(s string) *string {
393-
return Ptr(s)
394-
},
390+
mapFn: Ptr[string],
395391
},
396392
want: []*string{},
397393
},

0 commit comments

Comments
 (0)