Skip to content

Tests fail for 3.5.1 and 2.11.0 #371

Closed

Description

@mdosch

Dear maintainers,

sorry for bothering you again but the latest releases for the v3 and v2 branches fail the tests.

go version
go version go1.27.1 linux/amd64

2.11.0:

go test ./...       
?   	github.com/ProtonMail/gopenpgp/v2/armor	[no test files]
?   	github.com/ProtonMail/gopenpgp/v2/constants	[no test files]
--- FAIL: TestTextMessageEncryptionWithCompression (0.01s)
    assertion_compare.go:332: 
        	Error Trace:	message_test.go:177
        	Error:      	"149" is not less than "133"
        	Test:       	TestTextMessageEncryptionWithCompression
        	Messages:   	[]
--- FAIL: TestDataPacketEncryptionWithCompression (0.00s)
    assertion_compare.go:332: 
        	Error Trace:	sessionkey_test.go:337
        	Error:      	"149" is not less than "133"
        	Test:       	TestDataPacketEncryptionWithCompression
        	Messages:   	[]
FAIL
FAIL	github.com/ProtonMail/gopenpgp/v2/crypto	2.447s
ok  	github.com/ProtonMail/gopenpgp/v2/helper	0.237s
?   	github.com/ProtonMail/gopenpgp/v2/internal	[no test files]
?   	github.com/ProtonMail/gopenpgp/v2/models	[no test files]
ok  	github.com/ProtonMail/gopenpgp/v2/subtle	(cached)
FAIL

3.5.1:

go test ./...      
?   	github.com/ProtonMail/gopenpgp/v3/armor	[no test files]
?   	github.com/ProtonMail/gopenpgp/v3/constants	[no test files]
--- FAIL: TestEncryptCompressionApplied (0.01s)
    --- FAIL: TestEncryptCompressionApplied/PQC (0.00s)
        encrypt_decrypt_test.go:956: Expected compressed encrypted message to be smaller than the encrypted message
FAIL
FAIL	github.com/ProtonMail/gopenpgp/v3/crypto	8.041s
ok  	github.com/ProtonMail/gopenpgp/v3/internal	(cached)
ok  	github.com/ProtonMail/gopenpgp/v3/mime	(cached)
ok  	github.com/ProtonMail/gopenpgp/v3/mobile	(cached)
?   	github.com/ProtonMail/gopenpgp/v3/profile	[no test files]
FAIL

Activity

  1. lubux commented on Sep 30, 2026

    @lubux
    Member

    Hi, thanks. Go 1.27 introduced a new zlib encoder, which is less effective on small inputs.
    This should fix it;
    #373
    #372

  2. mdosch commented on Sep 30, 2026

    @mdosch
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions