@@ -25,12 +25,12 @@ func TestFileCache(t *testing.T) {
2525 // store new key
2626 err := cache .Store (ctx , key , []byte (value ))
2727 require .NoError (t , err )
28- checkValue (t , ctx , fs , filepath .Join (cacheRoot , cachedFilePath ), cache , key , value )
28+ checkValue (ctx , t , fs , filepath .Join (cacheRoot , cachedFilePath ), cache , key , value )
2929
3030 // update existing key
3131 err = cache .Store (ctx , key , []byte (newValue ))
3232 require .NoError (t , err )
33- checkValue (t , ctx , fs , filepath .Join (cacheRoot , cachedFilePath ), cache , key , newValue )
33+ checkValue (ctx , t , fs , filepath .Join (cacheRoot , cachedFilePath ), cache , key , newValue )
3434
3535 // delete key
3636 err = cache .Delete (ctx , key )
@@ -40,7 +40,7 @@ func TestFileCache(t *testing.T) {
4040 require .False (t , exists )
4141}
4242
43- func checkValue (t * testing. T , ctx context. Context , fs afero.Fs , fileFullPath string , cache * FileCache , key , wantValue string ) {
43+ func checkValue (ctx context. Context , t * testing. T , fs afero.Fs , fileFullPath string , cache * FileCache , key , wantValue string ) {
4444 t .Helper ()
4545 // check actual file content
4646 b , err := afero .ReadFile (fs , fileFullPath )
0 commit comments