2
2
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:
Alexander Neumann 2018-08-11 23:11:51 +02:00
parent 04f7c054cd
commit 0f83fea007

View File

@ -218,7 +218,7 @@ func TestFileLoad(t *testing.T) {
{32*1024 + 5, 0}, {32*1024 + 5, 0},
{0, 123}, {0, 123},
{0, 64*1024 + 234}, {0, 64*1024 + 234},
{100, 5234142}, {100, 5234142 - 100},
} }
for _, test := range tests { for _, test := range tests {