core: fix error reporting of sqlcipher export errors (#1029)

This commit is contained in:
Evgeny Poberezkin
2022-09-07 17:20:47 +01:00
committed by GitHub
parent 766009269e
commit 3f5ca84c84
3 changed files with 16 additions and 8 deletions

View File

@@ -2788,6 +2788,8 @@ testDatabaseEncryption = withTmpFiles $ do
testChatWorking alice bob
alice ##> "/_stop"
alice <## "chat stopped"
alice ##> "/db password wrongkey nextkey"
alice <## "error encrypting database: wrong passphrase or invalid database file"
alice ##> "/db password mykey nextkey"
alice <## "ok"
alice ##> "/_db encryption {\"currentKey\":\"nextkey\",\"newKey\":\"anotherkey\"}"