forked from TrueCloudLab/restic
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
1 changed files with 1 additions and 1 deletions
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 a new issue