mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01:00
fs/cache: test for fix cached values pointing to files #3424
This commit is contained in:
parent
0c1eaf1bcb
commit
7d85ccb11e
2
fs/cache/cache_test.go
vendored
2
fs/cache/cache_test.go
vendored
@ -62,11 +62,13 @@ func TestGetFile(t *testing.T) {
|
||||
|
||||
f, err := GetFn("/file.txt", create)
|
||||
require.Equal(t, fs.ErrorIsFile, err)
|
||||
require.NotNil(t, f)
|
||||
|
||||
assert.Equal(t, 1, c.Entries())
|
||||
|
||||
f2, err := GetFn("/file.txt", create)
|
||||
require.Equal(t, fs.ErrorIsFile, err)
|
||||
require.NotNil(t, f2)
|
||||
|
||||
assert.Equal(t, f, f2)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user