-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
When building a .deb(ian) package of this module, the test-suite fails:
=== RUN TestScanner
scanner_test.go:75:
Error Trace: /build/golang-github-subosito-gotenv-1.6.0/obj-aarch64-linux-gnu/src/github.com/subosito/gotenv/scanner_test.go:75
Error: Not equal:
expected: 4
actual : 3
Test: TestScanner
Messages: testCase: regular LF split with trailing LF - expected to have the correct line count
scanner_test.go:75:
Error Trace: /build/golang-github-subosito-gotenv-1.6.0/obj-aarch64-linux-gnu/src/github.com/subosito/gotenv/scanner_test.go:75
Error: Not equal:
expected: 4
actual : 3
Test: TestScanner
Messages: testCase: regular CR split with trailing CR - expected to have the correct line count
scanner_test.go:75:
Error Trace: /build/golang-github-subosito-gotenv-1.6.0/obj-aarch64-linux-gnu/src/github.com/subosito/gotenv/scanner_test.go:75
Error: Not equal:
expected: 4
actual : 3
Test: TestScanner
Messages: testCase: regular CRLF split with trailing CRLF - expected to have the correct line count
With my very limited understanding of what's going on, it seems to me like the test is wrong. Please not that it's the tests that expects 4 lines that fails. All the ones with some variant of a trailing newline. Why would those ever produce an forth empty line (as described in expected test output)? Has this test always been wrong or what am I missing?
Metadata
Metadata
Assignees
Labels
No labels