Refactor RepoBranchTagSelector (#32681)

This commit is contained in:
wxiaoguang
2024-12-02 09:41:32 +08:00
repo.diff.committed_by GitHub
repo.diff.parent def13ece7c
repo.diff.commit e3e32605a1
repo.diff.stats_desc%!(EXTRA int=8, int=275, int=288)

2
modules/cache/cache_test.go repo.diff.vendored
repo.diff.view_file

@@ -43,7 +43,7 @@ func TestTest(t *testing.T) {
elapsed, err := Test()
assert.NoError(t, err)
// mem cache should take from 300ns up to 1ms on modern hardware ...
assert.Less(t, elapsed, SlowCacheThreshold)
assert.Less(t, elapsed, time.Millisecond)
}
func TestGetCache(t *testing.T) {