Test that a cache hit takes the content type from memory (closes #70)
check / check (push) Failing after 2m14s
check / check (push) Failing after 2m14s
Tests for keeping each variant's content type in memory. A second hit must still get the stored content type after the variant's .meta file is deleted, whether the first came from storing the variant or from reading it after a restart; this fails now. A variant removed by EvictToLimit, or whose file was deleted from disk, must be a miss and must not be served, and concurrent stores, reads and evictions run under the race detector; these pass now and guard the change. Model: opus-5-5
This commit is contained in:
@@ -24,6 +24,7 @@ const (
|
||||
testHostExample = "example.com"
|
||||
testPathCat = "/photos/cat.jpg"
|
||||
testContentTypeJPEG = "image/jpeg"
|
||||
testContentTypeWebP = "image/webp"
|
||||
testHeaderContentType = "Content-Type"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user