mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-12 17:25:19 +00:00
more races
This commit is contained in:
@@ -1793,8 +1793,7 @@ testUsersRestartCIExpiration tmp = do
|
||||
showActiveUser alice "alice (Alice)"
|
||||
|
||||
withTestChatCfg tmp cfg "alice" $ \alice -> do
|
||||
alice <## "1 contacts connected (use /cs for the list)"
|
||||
alice <## "[user: alisa] 1 contacts connected (use /cs for the list)"
|
||||
alice <### ["1 contacts connected (use /cs for the list)", "[user: alisa] 1 contacts connected (use /cs for the list)"]
|
||||
|
||||
-- first user messages
|
||||
alice ##> "/user alice"
|
||||
@@ -1892,8 +1891,7 @@ testEnableCIExpirationOnlyForOneUser tmp = do
|
||||
alice #$> ("/_get chat @4 count=100", chat, chatFeatures <> [(1, "alisa 1"), (0, "alisa 2"), (1, "alisa 3"), (0, "alisa 4")])
|
||||
|
||||
withTestChatCfg tmp cfg "alice" $ \alice -> do
|
||||
alice <## "1 contacts connected (use /cs for the list)"
|
||||
alice <## "[user: alice] 1 contacts connected (use /cs for the list)"
|
||||
alice <### ["1 contacts connected (use /cs for the list)", "[user: alice] 1 contacts connected (use /cs for the list)"]
|
||||
|
||||
-- messages are not deleted for second user after restart
|
||||
alice #$> ("/_get chat @4 count=100", chat, chatFeatures <> [(1, "alisa 1"), (0, "alisa 2"), (1, "alisa 3"), (0, "alisa 4")])
|
||||
@@ -1948,8 +1946,7 @@ testDisableCIExpirationOnlyForOneUser tmp = do
|
||||
alice #$> ("/_get chat @4 count=100", chat, [])
|
||||
|
||||
withTestChatCfg tmp cfg "alice" $ \alice -> do
|
||||
alice <## "1 contacts connected (use /cs for the list)"
|
||||
alice <## "[user: alice] 1 contacts connected (use /cs for the list)"
|
||||
alice <### ["1 contacts connected (use /cs for the list)", "[user: alice] 1 contacts connected (use /cs for the list)"]
|
||||
|
||||
-- second user still has ttl configured after restart
|
||||
alice #$> ("/ttl", id, "old messages are set to be deleted after: 1 second(s)")
|
||||
|
||||
Reference in New Issue
Block a user