aboutsummaryrefslogtreecommitdiff
path: root/internal/db/ssh_key_test.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-04-10 22:51:24 +0800
committerGitHub <noreply@github.com>2020-04-10 22:51:24 +0800
commite186a3d2c95aee3c652b010c2c08ed771590b86b (patch)
tree5b4f5637cef8a76cac979f2d225f540b141facea /internal/db/ssh_key_test.go
parent9a5b227f3ee2b2a3854d3aec022cc9a0cf0868b3 (diff)
db: add tests for helper functions (#6084)
Diffstat (limited to 'internal/db/ssh_key_test.go')
-rw-r--r--internal/db/ssh_key_test.go5
1 files changed, 1 insertions, 4 deletions
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