#1144204 golang-github-renekroon-ttlcache: keep out of forky and flaky test FTBFS: FAIL: TestCache_TestMetrics: cache_test.go:260: Not equal: expected: 4 actual: 2

#1144204#5
Date:
2026-08-12 09:11:20 UTC
From:
To:
This package has no reverse dependencies in Debian and no upstream v2
release since 2022.  New consumers will hopefully use the v3 branch,
which should be packaged separately for Debian if there is a need.
Thus, I don't think forky should ship with this package.  We can keep it
unstable for some time if there is a need for it.

It currently has a flaky test FTBFS causing testing migration blocking.
This could be fixed, but I think the better fix is to keep it out of
testing in the first place.

https://ci.debian.net/packages/g/golang-github-renekroon-ttlcache/testing/amd64/74275118/#L893

 78s === NAME  TestCache_TestMetrics
 78s     cache_test.go:260:
 78s         	Error Trace:	/tmp/autopkgtest.6m2D25/autopkgtest_tmp/obj-x86_64-linux-gnu/src/github.com/ReneKroon/ttlcache/cache_test.go:260
 78s         	Error:      	Not equal:
 78s         	            	expected: 4
 78s         	            	actual  : 2
 78s         	Test:       	TestCache_TestMetrics
 78s === NAME  TestCache_SetExpirationCallback
 78s     cache_test.go:652: Cache size: 2
 78s --- PASS: TestCacheGetWithTTL (0.02s)
 78s === NAME  TestCache_SetExpirationCallback
 78s     cache_test.go:652: Cache size: 3
 78s --- PASS: TestCacheSetWithTTLExistItem (0.03s)
 78s --- FAIL: TestCache_TestMetrics (0.03s)

/Simon