Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail in servertls_test.go #83

Open
fmaylinch opened this issue Dec 3, 2021 · 0 comments
Open

Tests fail in servertls_test.go #83

fmaylinch opened this issue Dec 3, 2021 · 0 comments

Comments

@fmaylinch
Copy link

fmaylinch commented Dec 3, 2021

Problem with certs:

panic: x509: certificate relies on legacy Common Name field, use SANs instead

goroutine 36 [running]:
gopkg.in/mcuadros/go-syslog%2ev2.(*ServerSuite).TestTLS.func1(0x0)
        /-S/vendor/gopkg.in/mcuadros/go-syslog.v2/servertls_test.go:69 +0x148
created by gopkg.in/mcuadros/go-syslog%2ev2.(*ServerSuite).TestTLS
        /-S/vendor/gopkg.in/mcuadros/go-syslog.v2/servertls_test.go:65 +0x13c

Problem with server being killed too soon:

/-S/vendor/gopkg.in/mcuadros/go-syslog.v2/servertls_test.go:80:
... obtained = nil
... expected string = "hostname"
/-S/vendor/gopkg.in/mcuadros/go-syslog.v2/servertls_test.go:81:
... obtained = nil
... expected string = "tag"
/-S/vendor/gopkg.in/mcuadros/go-syslog.v2/servertls_test.go:82:
... obtained = nil
... expected string = "content"
/-S/vendor/gopkg.in/mcuadros/go-syslog.v2/servertls_test.go:83:
... obtained = nil
... expected string = "dummycert1"
/-S/vendor/gopkg.in/mcuadros/go-syslog.v2/servertls_test.go:84:
... obtained int64 = 0
... expected int64 = 46

I added 2 commits here, to fix it: https://github.com/fmaylinch/go-syslog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant