core: revert stop/close changes made for Windows (#3145)

* Revert "core: return error response when wrong passphrase is passed to start"

This reverts commit ea319313f1.

* Revert "core: support closing/re-opening store on chat stop/start (#3132)"

This reverts commit 3c7fc6b0ee.
This commit is contained in:
Evgeny Poberezkin authored and GitHub committed 2023-09-29 11:14:10 +01:00
1 parent bc7baf560b
commit 1d34500fba
11 files changed
+42 -87

No files matched your search

+1 -1
View File
@@ -171,7 +171,7 @@ startTestChat_ db cfg opts user = do
stopTestChat :: TestCC -> IO ()
stopTestChat TestCC {chatController = cc, chatAsync, termAsync} = do
stopChatController cc False
stopChatController cc
uninterruptibleCancel termAsync
uninterruptibleCancel chatAsync
threadDelay 200000
+1 -8
View File
@@ -992,17 +992,10 @@ testDatabaseEncryption tmp = do
alice ##> "/_start"
alice <## "chat started"
testChatWorking alice bob
alice ##> "/_stop close"
alice ##> "/_stop"
alice <## "chat stopped"
alice ##> "/db key wrongkey nextkey"
alice <## "error encrypting database: wrong passphrase or invalid database file"
alice ##> "/_start key=wrongkey"
alice <## "error opening database: wrong passphrase or invalid database file"
alice ##> "/_start key=mykey"
alice <## "chat started"
testChatWorking alice bob
alice ##> "/_stop close"
alice <## "chat stopped"
alice ##> "/db key mykey nextkey"
alice <## "ok"
alice ##> "/_db encryption {\"currentKey\":\"nextkey\",\"newKey\":\"anotherkey\"}"