Skip to content

ttlcache@3.4.0: Tests fail with Go 1.25.9 #207

@Hellseher

Description

@Hellseher

Hi,

After the switch default Go for packages in Guix (1.24.13 -> 1.25.9) quic-go package started failing during check phase:

--- FAIL: Test_Cache_Get (0.00s)
    --- FAIL: Test_Cache_Get/Get_when_item_is_found (0.00s)
    --- FAIL: Test_Cache_Get/Get_with_call_loader_that_returns_nil_value_when_item_is_not_found (0.00s)
=== CONT  Test_Cache_Get/Get_when_TTL_extension_is_disabled_and_item_is_found
--- FAIL: Test_Cache_Get (0.00s)
    --- FAIL: Test_Cache_Get/Get_with_default_loader_that_returns_nil_value_when_item_is_not_found (0.00s)
=== CONT  Test_Cache_Get/Get_without_loader_when_item_is_not_found
--- FAIL: Test_Cache_Get (0.00s)
    --- FAIL: Test_Cache_Get/Get_without_loader_when_item_is_not_found (0.00s)
panic: testing: AllocsPerRun called during parallel test [recovered, repanicked]

goroutine 57 [running]:
testing.tRunner.func1.2({0x62cc80, 0x6e6e60})
        /gnu/store/0jbvyiwkmhriv1aawj7lcsb3lmsa22my-go-1.25.9/lib/go/src/testing/testing.go:1872 +0x237
testing.tRunner.func1()
        /gnu/store/0jbvyiwkmhriv1aawj7lcsb3lmsa22my-go-1.25.9/lib/go/src/testing/testing.go:1875 +0x35b
panic({0x62cc80?, 0x6e6e60?})
        /gnu/store/0jbvyiwkmhriv1aawj7lcsb3lmsa22my-go-1.25.9/lib/go/src/runtime/panic.go:783 +0x132
testing.AllocsPerRun(0x1?, 0xc000337d80?)
        /gnu/store/0jbvyiwkmhriv1aawj7lcsb3lmsa22my-go-1.25.9/lib/go/src/testing/allocs.go:22 +0x1a5
github.com/jellydator/ttlcache/v3.allocsPerSingleRun(0x0?)
        /tmp/guix-build-go-github-com-jellydator-ttlcache-v3-3.4.0.drv-0/src/github.com/jellydator/ttlcache/v3/cache_test.go:1549 +0x3d
github.com/jellydator/ttlcache/v3.Test_Cache_Get.func7(0xc0002aafc0)
        /tmp/guix-build-go-github-com-jellydator-ttlcache-v3-3.4.0.drv-0/src/github.com/jellydator/ttlcache/v3/cache_test.go:672 +0x1f8
testing.tRunner(0xc0002aafc0, 0xc000280690)
        /gnu/store/0jbvyiwkmhriv1aawj7lcsb3lmsa22my-go-1.25.9/lib/go/src/testing/testing.go:1934 +0xea
created by testing.(*T).Run in goroutine 52
        /gnu/store/0jbvyiwkmhriv1aawj7lcsb3lmsa22my-go-1.25.9/lib/go/src/testing/testing.go:1997 +0x465
panic: testing: AllocsPerRun called during parallel test [recovered, repanicked]

goroutine 55 [running]:
testing.tRunner.func1.2({0x62cc80, 0x6e6e60})
        /gnu/store/0jbvyiwkmhriv1aawj7lcsb3lmsa22my-go-1.25.9/lib/go/src/testing/testing.go:1872 +0x237
testing.tRunner.func1()
        /gnu/store/0jbvyiwkmhriv1aawj7lcsb3lmsa22my-go-1.25.9/lib/go/src/testing/testing.go:1875 +0x35b
panic({0x62cc80?, 0x6e6e60?})
        /gnu/store/0jbvyiwkmhriv1aawj7lcsb3lmsa22my-go-1.25.9/lib/go/src/runtime/panic.go:783 +0x132
testing.AllocsPerRun(0x1?, 0xc000419d80?)
        /gnu/store/0jbvyiwkmhriv1aawj7lcsb3lmsa22my-go-1.25.9/lib/go/src/testing/allocs.go:22 +0x1a5
github.com/jellydator/ttlcache/v3.allocsPerSingleRun(0x0?)
        /tmp/guix-build-go-github-com-jellydator-ttlcache-v3-3.4.0.drv-0/src/github.com/jellydator/ttlcache/v3/cache_test.go:1549 +0x3d
github.com/jellydator/ttlcache/v3.Test_Cache_Get.func7(0xc0002aa8c0)
        /tmp/guix-build-go-github-com-jellydator-ttlcache-v3-3.4.0.drv-0/src/github.com/jellydator/ttlcache/v3/cache_test.go:672 +0x1f8
testing.tRunner(0xc0002aa8c0, 0xc0002805f0)
        /gnu/store/0jbvyiwkmhriv1aawj7lcsb3lmsa22my-go-1.25.9/lib/go/src/testing/testing.go:1934 +0xea
created by testing.(*T).Run in goroutine 52
        /gnu/store/0jbvyiwkmhriv1aawj7lcsb3lmsa22my-go-1.25.9/lib/go/src/testing/testing.go:1997 +0x465
FAIL    github.com/jellydator/ttlcache/v3       0.163s
FAIL

Inputs:

  • go-github-com-jellydator-ttlcache-v3@3.4.0
    • go-github-com-stretchr-testify@1.11.1
    • go-go-uber-org-goleak@1.3.0
    • go-golang-org-x-sync@0.19.0

Full build log:

503b59y3qvbkvxsy8inp5gj2x4y1r4-go-github-com-jellydator-ttlcache-v3-3.4.0.drv.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions