From 0f83fea00711f3ede6cdb526ebd6d92508f56034 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 11 Aug 2018 23:11:51 +0200 Subject: [PATCH] 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. --- internal/cache/file_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cache/file_test.go b/internal/cache/file_test.go index 35ce762c0..cf275c84e 100644 --- a/internal/cache/file_test.go +++ b/internal/cache/file_test.go @@ -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 {