Skip to content

x/pkgsite/internal/poller: TestCache failures with CacheResultCount diff #61270

Description

@gopherbot
#!watchflakes
post <- pkg == "golang.org/x/pkgsite/internal/poller" && test == "TestCache" && `CacheResultCount diff`

Issue created automatically to collect these failures.

Example (log):

2023/07/06 21:59:58 Info: caching response of length 25 for /A
2023/07/06 21:59:58 Debug: serving "/A" from cache
2023/07/06 21:59:58 Info: caching response of length 25 for /A
2023/07/06 21:59:58 Info: cache get("/A"): context timed out
2023/07/06 21:59:58 Info: caching response of length 25 for /A
--- FAIL: TestCache (0.29s)
    caching_test.go:159: [A is cached again] GET returned body 5, want 4
    caching_test.go:177: [A is cached again] CacheResultCount diff (-want +got):
          map[bool]int{
        - 	false: 3,
        + 	false: 4,
        - 	true:  2,
        + 	true:  1,
          }
    caching_test.go:177: [bypassing the cache] CacheResultCount diff (-want +got):
          map[bool]int{
        - 	false: 3,
        + 	false: 4,
        - 	true:  2,
        + 	true:  1,
          }
2023/07/06 21:59:59 Error: middleware.Panic: panic!

— watchflakes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions