forked from Silverfish/proton-bridge
fix(GODT-3102): Distinguish Vault Decryption from Serialization Errors
Rather than returning whether the vault was corrupt or not return the error which caused the vault to be considered as corrupt.
This commit is contained in:
@ -34,7 +34,7 @@ func BenchmarkVault(b *testing.B) {
|
||||
// Create a new vault.
|
||||
s, corrupt, err := vault.New(vaultDir, gluonDir, []byte("my secret key"), async.NoopPanicHandler{})
|
||||
require.NoError(b, err)
|
||||
require.False(b, corrupt)
|
||||
require.NoError(b, corrupt)
|
||||
|
||||
// Add 10kB of cookies to the vault.
|
||||
require.NoError(b, s.SetCookies(bytes.Repeat([]byte("a"), 10_000)))
|
||||
|
||||
Reference in New Issue
Block a user