tests: record name fixtures after the channel join settles (#8250)

This commit is contained in:
Evgeny @ SimpleX Chat authored and GitHub committed 2026-11-20 11:44:41 +00:00
1 parent 804242661e
commit 14c0fa04a0
3 files changed
+13 -1

No files matched your search

+10
View File
@@ -322,6 +322,7 @@ testChannelDomainVerify ps = withSmpServerAndNames ps $ \reg ->
alice ##> "/_verify domain #1"
alice <## "SimpleX name #team verified"
memberJoinChannel "team" [cath] [alice] shortLink fullLink bob
settleTeamJoin alice cath bob
bob ##> "/_verify domain #1"
bob <## "SimpleX name #team verified"
-- the name is re-pointed to a different link: verification fails
@@ -1007,10 +1008,18 @@ joinVerifiedTeam reg alice cath bob = do
registerName reg teamSimplexName (channelNameRecord "team.simplex" (T.pack shortLink))
setChannelDomain alice cath "alice" "team" "team.simplex"
memberJoinChannel "team" [cath] [alice] shortLink fullLink bob
settleTeamJoin alice cath bob
bob ##> "/_verify domain #1"
bob <## "SimpleX name #team verified"
pure shortLink
settleTeamJoin :: HasCallStack => TestCC -> TestCC -> TestCC -> IO ()
settleTeamJoin alice cath bob = do
alice #> "#team hi"
cath <# "#team> hi"
bob <# "#team> hi [>>]"
waitQueuedLinkUpdates alice
knownGroupPlan :: HasCallStack => String -> String -> TestCC -> IO ()
knownGroupPlan g name cc = do
cc <## ("group link: known group #" <> g)
@@ -1099,6 +1108,7 @@ withTeamChats test = withChannelChats $ \reg alice cath bob -> do
alice <## "new contact address set"
connectBobByName "@team.simplex" alice bob
joinChannelByName "team" alice cath bob
settleTeamJoin alice cath bob
test reg contactLink channelLink alice bob
testNameRecordOrWarning :: IO ()
+1
View File
@@ -161,6 +161,7 @@
"connShortLink": "connShortLink"
}
},
"rosterVersion": 0,
"updatedAt": "1970-01-01T00:00:00Z",
"useRelays": true,
"userMemberProfileSentAt": "1970-01-01T00:00:00Z",
+2 -1
View File
@@ -89,7 +89,7 @@
}
},
"groupSummary": {
"currentMembers": 2,
"currentMembers": 3,
"publicMemberCount": 1
},
"localAlias": "",
@@ -161,6 +161,7 @@
"connShortLink": "connShortLink"
}
},
"rosterVersion": 0,
"updatedAt": "1970-01-01T00:00:00Z",
"useRelays": true,
"userMemberProfileSentAt": "1970-01-01T00:00:00Z",