loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'test: remove performance sensitive test' (#4315) from earl-warren/forgejo:wip-redis-test into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4315
Reviewed-by: twenty-panda <twenty-panda@noreply.codeberg.org>

-13
-13
modules/cache/cache_test.go
··· 9 9 "time" 10 10 11 11 "code.gitea.io/gitea/modules/setting" 12 - "code.gitea.io/gitea/modules/test" 13 12 14 13 "github.com/stretchr/testify/assert" 15 14 ) ··· 33 32 }) 34 33 assert.Error(t, err) 35 34 assert.Nil(t, con) 36 - } 37 - 38 - func TestTest(t *testing.T) { 39 - defer test.MockVariableValue(&conn, nil)() 40 - _, err := Test() 41 - assert.Error(t, err) 42 - 43 - createTestCache() 44 - elapsed, err := Test() 45 - assert.NoError(t, err) 46 - // mem cache should take from 300ns up to 1ms on modern hardware ... 47 - assert.Less(t, elapsed, SlowCacheThreshold) 48 35 } 49 36 50 37 func TestGetCache(t *testing.T) {