Skip to content

x/pkgsite/internal/middleware: TestCache failures #66548

Closed
@gopherbot

Description

@gopherbot
#!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!

watchflakes

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.pkgsite

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions