Skip to content

Commit 7782228

Browse files
committed
add to test
1 parent 92ee3cd commit 7782228

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/AgentTests/FunctionalAPITests.hs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2636,18 +2636,19 @@ testSetConnShortLinkAsync ps = withAgentClients2 $ \alice bob ->
26362636
let userData = UserLinkData "test user data"
26372637
userCtData = UserContactData {direct = True, owners = [], relays = [], userData}
26382638
newLinkData = UserContactLinkData userCtData
2639-
(contactId, (CCLink qInfo (Just shortLink), _)) <- A.createConnection alice NRMInteractive 1 True True SCMContact (Just newLinkData) Nothing IKPQOn SMSubscribe
2639+
(cId, (CCLink qInfo (Just shortLink), _)) <- A.createConnection alice NRMInteractive 1 True True SCMContact (Just newLinkData) Nothing IKPQOn SMSubscribe
26402640
-- verify initial link data
26412641
(_, ContactLinkData _ userCtData') <- getConnShortLink bob 1 shortLink
26422642
liftIO $ userCtData' `shouldBe` userCtData
26432643
-- update link data async
26442644
let updatedData = UserLinkData "updated user data"
26452645
updatedCtData = UserContactData {direct = False, owners = [], relays = [], userData = updatedData}
2646-
setConnShortLinkAsync alice "1" contactId SCMContact (UserContactLinkData updatedCtData) Nothing
2647-
("1", contactId', LINK (ACSL SCMContact _)) <- get alice
2648-
liftIO $ contactId' `shouldBe` contactId
2646+
setConnShortLinkAsync alice "1" cId SCMContact (UserContactLinkData updatedCtData) Nothing
2647+
("1", cId', LINK (ACSL SCMContact shortLink')) <- get alice
2648+
liftIO $ cId' `shouldBe` cId
2649+
liftIO $ shortLink' `shouldBe` shortLink
26492650
-- verify updated link data
2650-
(_, ContactLinkData _ updatedCtData') <- getConnShortLink bob 1 shortLink
2651+
(_, ContactLinkData _ updatedCtData') <- getConnShortLink bob 1 shortLink'
26512652
liftIO $ updatedCtData' `shouldBe` updatedCtData
26522653
-- complete connection via contact address
26532654
(aliceId, _) <- joinConnection bob 1 True qInfo "bob's connInfo" SMSubscribe

0 commit comments

Comments
 (0)