cmd/server/helper_cert_test.go
Function TestGetOrCreateTLSCertificate
has 57 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestGetOrCreateTLSCertificate(t *testing.T) {
certPath, keyPath, cert, priv := testhelpers.GenerateTLSCertificateFilesForTests(t)
logger := logrusx.New("", "")
logger.Logger.ExitFunc = func(code int) { t.Fatalf("Logger called os.Exit(%v)", code) }
hook := test.NewLocal(logger.Logger)