From e186a3d2c95aee3c652b010c2c08ed771590b86b Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Fri, 10 Apr 2020 22:51:24 +0800 Subject: db: add tests for helper functions (#6084) --- internal/db/ssh_key_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'internal/db/ssh_key_test.go') diff --git a/internal/db/ssh_key_test.go b/internal/db/ssh_key_test.go index 9bf49413..dfd945b6 100644 --- a/internal/db/ssh_key_test.go +++ b/internal/db/ssh_key_test.go @@ -14,11 +14,8 @@ import ( "gogs.io/gogs/internal/conf" ) -func init() { - conf.MustInit("") -} - func Test_SSHParsePublicKey(t *testing.T) { + conf.MustInit("") testKeys := map[string]struct { typeName string length int -- cgit v1.2.3