#!watchflakes
default <- pkg == "golang.org/x/pkgsite/internal/middleware" && test == "TestCache"
Issue created automatically to collect these failures.
Example (log):
2024/03/26 15:37:41 Info: caching response of length 25 for /A
2024/03/26 15:37:42 Info: cache get("/A"): context timed out
2024/03/26 15:37:42 Info: caching response of length 25 for /A
2024/03/26 15:37:42 Debug: serving "/A" from cache
--- FAIL: TestCache (0.21s)
caching_test.go:156: [A is cached] GET returned status 403, want 200
caching_test.go:164: [A is cached] GET returned body 3, want 2
caching_test.go:182: [A is cached] CacheResultCount diff (-want +got):
map[bool]int{
- false: 2,
...
+ true: 1,
}
caching_test.go:182: [bypassing the cache] CacheResultCount diff (-want +got):
map[bool]int{
- false: 3,
+ false: 4,
- true: 2,
+ true: 1,
}
2024/03/26 15:37:42 Error: middleware.Panic: panic!
Comment From: gopherbot
Found new dashboard test flakes for:
#!watchflakes
default <- pkg == "golang.org/x/pkgsite/internal/middleware" && test == "TestCache"
2024-03-05 19:44 darwin-amd64-12_0 pkgsite@ea431292 go@b47f2feb x/pkgsite/internal/middleware.TestCache (log)
2024/03/26 15:37:41 Info: caching response of length 25 for /A 2024/03/26 15:37:42 Info: cache get("/A"): context timed out 2024/03/26 15:37:42 Info: caching response of length 25 for /A 2024/03/26 15:37:42 Debug: serving "/A" from cache --- FAIL: TestCache (0.21s) caching_test.go:156: [A is cached] GET returned status 403, want 200 caching_test.go:164: [A is cached] GET returned body 3, want 2 caching_test.go:182: [A is cached] CacheResultCount diff (-want +got): map[bool]int{ - false: 2, ... + true: 1, } caching_test.go:182: [bypassing the cache] CacheResultCount diff (-want +got): map[bool]int{ - false: 3, + false: 4, - true: 2, + true: 1, } 2024/03/26 15:37:42 Error: middleware.Panic: panic!Comment From: gopherbot
Found new dashboard test flakes for:
#!watchflakes
default <- pkg == "golang.org/x/pkgsite/internal/middleware" && test == "TestCache"