diff --git a/protocol/encryption/encryption_test.go b/protocol/encryption/encryption_test.go index 3c0ea19b4..a57ec63fa 100644 --- a/protocol/encryption/encryption_test.go +++ b/protocol/encryption/encryption_test.go @@ -620,6 +620,8 @@ func (s *EncryptionServiceTestSuite) TestMaxKeep() { config := defaultEncryptorConfig("none", s.logger) // Set MaxMessageKeysPerSession to an high value so it does not interfere config.MaxMessageKeysPerSession = 100000 + // Set MaxKeep to a small number for testing + config.MaxKeep = 10 s.initDatabases(config)