diff --git a/tests/NATS.Server.Tests/FileStoreEncryptionTests.cs b/tests/NATS.Server.Tests/FileStoreEncryptionTests.cs index 340eb9e..fd0a22d 100644 --- a/tests/NATS.Server.Tests/FileStoreEncryptionTests.cs +++ b/tests/NATS.Server.Tests/FileStoreEncryptionTests.cs @@ -92,13 +92,13 @@ public class FileStoreEncryptionTests await store.AppendAsync("secret", "data"u8.ToArray(), default); } - // Recovery with wrong key should throw or return no messages + // Recovery with wrong key should throw InvalidDataException (from CryptographicException) var act = () => new FileStore(new FileStoreOptions { Directory = dir.FullName, Cipher = StoreCipher.ChaCha, EncryptionKey = key2, }); - Should.Throw(act); + Should.Throw(act); } }