mirror of
https://github.com/octoleo/restic.git
synced 2024-12-22 10:58:55 +00:00
cache: Fix test for new behavior
Accessing beyond the end of the file now removes the file from the cache because it is assumed to be truncated. Usually, this means that the data is fetched directly from the backend instead.
This commit is contained in:
parent
04f7c054cd
commit
0f83fea007
2
internal/cache/file_test.go
vendored
2
internal/cache/file_test.go
vendored
@ -218,7 +218,7 @@ func TestFileLoad(t *testing.T) {
|
||||
{32*1024 + 5, 0},
|
||||
{0, 123},
|
||||
{0, 64*1024 + 234},
|
||||
{100, 5234142},
|
||||
{100, 5234142 - 100},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
Loading…
Reference in New Issue
Block a user