@@ -333,15 +333,15 @@ func TestValidateRequestSignature(t *testing.T) {
333
333
334
334
tmpFiles , err := os .ReadDir (authenticator .cfg .TempDirectory ())
335
335
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 {
337
337
return strings .HasPrefix (file .Name (), "bh-request-" )
338
338
}), 1 )
339
339
340
340
// Closing the body should remove the tmp file
341
341
req .Body .Close ()
342
342
tmpFiles , err = os .ReadDir (os .TempDir ())
343
343
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 {
345
345
return strings .HasPrefix (file .Name (), "bh-request-" )
346
346
}), 0 )
347
347
})
@@ -376,7 +376,7 @@ func TestValidateRequestSignature(t *testing.T) {
376
376
// "small" payloads should not create a tmp file
377
377
tmpFiles , err := os .ReadDir (os .TempDir ())
378
378
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 {
380
380
return strings .HasPrefix (file .Name (), "bh-request-" )
381
381
}), 0 )
382
382
})
0 commit comments