fix tests

This commit is contained in:
spaced4ndy
2024-03-29 10:58:15 +04:00
parent d63310080b
commit b31b5af45d
3 changed files with 11 additions and 4 deletions
+1
View File
@@ -371,6 +371,7 @@ testDeleteUnusedContactSilent =
cath <### ["alice (Alice)", "bob (Bob)"]
cath `hasContactProfiles` ["cath", "alice", "bob"]
-- bob deletes cath, cath's bob contact is deleted silently
threadDelay 50000
bob ##> "/d cath"
bob <## "cath: contact is deleted"
bob ##> "/contacts"
+3
View File
@@ -608,6 +608,7 @@ testGroupDelete =
testChatCfg3 cfg aliceProfile bobProfile cathProfile $
\alice bob cath -> do
createGroup3 "team" alice bob cath
threadDelay 50000
alice ##> "/d #team"
concurrentlyN_
[ alice <## "#team: you deleted the group",
@@ -2632,6 +2633,8 @@ testPlanGroupLinkLeaveRejoin =
bob <## "group link: known group #team"
bob <## "use #team <message> to send messages"
threadDelay 50000
bob ##> "/leave #team"
concurrentlyN_
[ do
+7 -4
View File
@@ -179,10 +179,12 @@ testMultiWordProfileNames =
alice <# "#'Our Team' 'Bob James'> hi"
cath <# "#'Our Team' 'Bob James'> hi"
alice `send` "@'Cath Johnson' hello"
alice <## "member #'Our Team' 'Cath Johnson' does not have direct connection, creating"
alice <## "contact for member #'Our Team' 'Cath Johnson' is created"
alice <## "sent invitation to connect directly to member #'Our Team' 'Cath Johnson'"
alice <# "@'Cath Johnson' hello"
alice
<### [ "member #'Our Team' 'Cath Johnson' does not have direct connection, creating",
"contact for member #'Our Team' 'Cath Johnson' is created",
"sent invitation to connect directly to member #'Our Team' 'Cath Johnson'",
WithTime "@'Cath Johnson' hello"
]
cath <## "#'Our Team' 'Alice Jones' is creating direct contact 'Alice Jones' with you"
cath <# "'Alice Jones'> hello"
cath <## "'Alice Jones': contact is connected"
@@ -642,6 +644,7 @@ testPlanAddressOwn tmp =
"alice_2 (Alice): contact is connected"
]
threadDelay 50000
alice @@@ [("@alice_1", lastChatFeature), ("@alice_2", lastChatFeature)]
alice `send` "@alice_2 hi"
alice