@@ -254,7 +254,7 @@ addLocalUser = do
254
254
SomeConversationAction (sing @ 'ConversationJoinTag) (ConversationJoin (qalice :| [qdee]) roleNameWireMember)
255
255
}
256
256
WS. bracketRN c [alice, charlie, dee] $ \ [wsA, wsC, wsD] -> do
257
- runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain cu
257
+ void $ runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain cu
258
258
liftIO $ do
259
259
WS. assertMatch_ (5 # Second ) wsA $
260
260
wsAssertMemberJoinWithRole qconv qbob [qalice] roleNameWireMember
@@ -308,7 +308,7 @@ addUnconnectedUsersOnly = do
308
308
SomeConversationAction (sing @ 'ConversationJoinTag) (ConversationJoin (qCharlie :| [] ) roleNameWireMember)
309
309
}
310
310
-- Alice receives no notifications from this
311
- runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain cu
311
+ void $ runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain cu
312
312
WS. assertNoEvent (5 # Second ) [wsA]
313
313
314
314
-- | This test invokes the federation endpoint:
@@ -353,9 +353,9 @@ removeLocalUser = do
353
353
354
354
connectWithRemoteUser alice qBob
355
355
WS. bracketR c alice $ \ ws -> do
356
- runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain cuAdd
356
+ void $ runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain cuAdd
357
357
afterAddition <- listRemoteConvs remoteDomain alice
358
- runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain cuRemove
358
+ void $ runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain cuRemove
359
359
liftIO $ do
360
360
void . WS. assertMatch (3 # Second ) ws $
361
361
wsAssertMemberJoinWithRole qconv qBob [qAlice] roleNameWireMember
@@ -416,21 +416,21 @@ removeRemoteUser = do
416
416
}
417
417
418
418
WS. bracketRN c [alice, charlie, dee, flo] $ \ [wsA, wsC, wsD, wsF] -> do
419
- runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain (cuRemove qEve)
419
+ void $ runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain (cuRemove qEve)
420
420
liftIO $ do
421
421
WS. assertMatchN_ (3 # Second ) [wsA, wsD] $
422
422
wsAssertMembersLeave qconv qBob [qEve]
423
423
WS. assertNoEvent (1 # Second ) [wsC, wsF]
424
424
425
425
WS. bracketRN c [alice, charlie, dee, flo] $ \ [wsA, wsC, wsD, wsF] -> do
426
- runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain (cuRemove qDee)
426
+ void $ runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain (cuRemove qDee)
427
427
liftIO $ do
428
428
WS. assertMatchN_ (3 # Second ) [wsA, wsD] $
429
429
wsAssertMembersLeave qconv qBob [qDee]
430
430
WS. assertNoEvent (1 # Second ) [wsC, wsF]
431
431
432
432
WS. bracketRN c [alice, charlie, dee, flo] $ \ [wsA, wsC, wsD, wsF] -> do
433
- runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain (cuRemove qFlo)
433
+ void $ runFedClient @ " on-conversation-updated" fedGalleyClient remoteDomain (cuRemove qFlo)
434
434
liftIO $ do
435
435
WS. assertMatchN_ (3 # Second ) [wsA] $
436
436
wsAssertMembersLeave qconv qBob [qFlo]
@@ -467,7 +467,7 @@ notifyUpdate extras action etype edata = do
467
467
FedGalley. cuAction = action
468
468
}
469
469
WS. bracketR2 c alice charlie $ \ (wsA, wsC) -> do
470
- runFedClient @ " on-conversation-updated" fedGalleyClient bdom cu
470
+ void $ runFedClient @ " on-conversation-updated" fedGalleyClient bdom cu
471
471
liftIO $ do
472
472
WS. assertMatch_ (5 # Second ) wsA $ \ n -> do
473
473
let e = List1. head (WS. unpackPayload n)
@@ -511,8 +511,7 @@ notifyUpdateUnavailable extras action etype edata = do
511
511
WS. bracketR2 c alice charlie $ \ (wsA, wsC) -> do
512
512
(() , _fedRequests) <-
513
513
withTempMockFederator' (throw $ MockErrorResponse Http. status500 " Down for maintenance" ) $
514
- void $
515
- runFedClient @ " on-conversation-updated" fedGalleyClient bdom cu
514
+ void $ runFedClient @ " on-conversation-updated" fedGalleyClient bdom cu
516
515
liftIO $ do
517
516
WS. assertMatch_ (5 # Second ) wsA $ \ n -> do
518
517
let e = List1. head (WS. unpackPayload n)
@@ -644,7 +643,7 @@ notifyDeletedConversation = do
644
643
FedGalley. cuAlreadyPresentUsers = [alice],
645
644
FedGalley. cuAction = SomeConversationAction (sing @ 'ConversationDeleteTag) ()
646
645
}
647
- runFedClient @ " on-conversation-updated" fedGalleyClient bobDomain cu
646
+ void $ runFedClient @ " on-conversation-updated" fedGalleyClient bobDomain cu
648
647
649
648
liftIO $ do
650
649
WS. assertMatch_ (5 # Second ) wsAlice $ \ n -> do
@@ -702,7 +701,7 @@ addRemoteUser = do
702
701
SomeConversationAction (sing @ 'ConversationJoinTag) (ConversationJoin (qdee :| [qeve, qflo]) roleNameWireMember)
703
702
}
704
703
WS. bracketRN c (map qUnqualified [qalice, qcharlie, qdee, qflo]) $ \ [wsA, wsC, wsD, wsF] -> do
705
- runFedClient @ " on-conversation-updated" fedGalleyClient bdom cu
704
+ void $ runFedClient @ " on-conversation-updated" fedGalleyClient bdom cu
706
705
void . liftIO $ do
707
706
WS. assertMatchN_ (5 # Second ) [wsA, wsD] $
708
707
wsAssertMemberJoinWithRole qconv qbob [qeve, qdee] roleNameWireMember
@@ -847,7 +846,7 @@ onMessageSent = do
847
846
FedGalley. cuAction =
848
847
SomeConversationAction (sing @ 'ConversationJoinTag) (ConversationJoin (pure qalice) roleNameWireMember)
849
848
}
850
- runFedClient @ " on-conversation-updated" fedGalleyClient bdom cu
849
+ void $ runFedClient @ " on-conversation-updated" fedGalleyClient bdom cu
851
850
852
851
let txt = " Hello from another backend"
853
852
msg client = Map. fromList [(client, txt)]
@@ -869,7 +868,7 @@ onMessageSent = do
869
868
870
869
-- send message to alice and check reception
871
870
WS. bracketAsClientRN c [(alice, aliceC1), (alice, aliceC2), (eve, eveC)] $ \ [wsA1, wsA2, wsE] -> do
872
- runFedClient @ " on-message-sent" fedGalleyClient bdom rm
871
+ void $ runFedClient @ " on-message-sent" fedGalleyClient bdom rm
873
872
liftIO $ do
874
873
-- alice should receive the message on her first client
875
874
WS. assertMatch_ (5 # Second ) wsA1 $ \ n -> do
0 commit comments