Skip to content

Commit 69c508f

Browse files
committed
chore: fix infertypeargs flags
1 parent 889db41 commit 69c508f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: cmd/api/src/api/auth_internal_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -333,15 +333,15 @@ func TestValidateRequestSignature(t *testing.T) {
333333

334334
tmpFiles, err := os.ReadDir(authenticator.cfg.TempDirectory())
335335
assert.NoError(t, err)
336-
assert.Len(t, slicesext.Filter[fs.DirEntry](tmpFiles, func(file fs.DirEntry) bool {
336+
assert.Len(t, slicesext.Filter(tmpFiles, func(file fs.DirEntry) bool {
337337
return strings.HasPrefix(file.Name(), "bh-request-")
338338
}), 1)
339339

340340
// Closing the body should remove the tmp file
341341
req.Body.Close()
342342
tmpFiles, err = os.ReadDir(os.TempDir())
343343
assert.NoError(t, err)
344-
assert.Len(t, slicesext.Filter[fs.DirEntry](tmpFiles, func(file fs.DirEntry) bool {
344+
assert.Len(t, slicesext.Filter(tmpFiles, func(file fs.DirEntry) bool {
345345
return strings.HasPrefix(file.Name(), "bh-request-")
346346
}), 0)
347347
})
@@ -376,7 +376,7 @@ func TestValidateRequestSignature(t *testing.T) {
376376
// "small" payloads should not create a tmp file
377377
tmpFiles, err := os.ReadDir(os.TempDir())
378378
assert.NoError(t, err)
379-
assert.Len(t, slicesext.Filter[fs.DirEntry](tmpFiles, func(file fs.DirEntry) bool {
379+
assert.Len(t, slicesext.Filter(tmpFiles, func(file fs.DirEntry) bool {
380380
return strings.HasPrefix(file.Name(), "bh-request-")
381381
}), 0)
382382
})

0 commit comments

Comments
 (0)