@@ -19,6 +19,7 @@ import AgentTests.FunctionalAPITests
19
19
joinConnection ,
20
20
makeConnection ,
21
21
nGet ,
22
+ nGetUP ,
22
23
runRight ,
23
24
runRight_ ,
24
25
sendMessage ,
@@ -594,8 +595,8 @@ testNotificationsSMPRestart t APNSMockServer {apnsQ} = withAgentClients2 $ \alic
594
595
nGet bob =##> \ case (" " , " " , DOWN _ [c]) -> c == aliceId; _ -> False
595
596
596
597
withSmpServerStoreLogOn t testPort $ \ threadId -> runRight_ $ do
597
- nGet alice =##> \ case (" " , " " , UP _ [c]) -> c == bobId; _ -> False
598
- nGet bob =##> \ case (" " , " " , UP _ [c]) -> c == aliceId; _ -> False
598
+ nGetUP alice =##> \ case (" " , " " , UP _ [c]) -> c == bobId; _ -> False
599
+ nGetUP bob =##> \ case (" " , " " , UP _ [c]) -> c == aliceId; _ -> False
599
600
liftIO $ threadDelay 1000000
600
601
5 <- sendMessage bob aliceId (SMP. MsgFlags True ) " hello again"
601
602
get bob ##> (" " , aliceId, SENT 5 )
@@ -628,11 +629,11 @@ testNotificationsSMPRestartBatch n t APNSMockServer {apnsQ} =
628
629
liftIO $ length (acs1 <> acs2) `shouldBe` length conns
629
630
630
631
runServers $ do
631
- (" " , " " , UP _ bcs1) <- nGet a
632
- (" " , " " , UP _ bcs2) <- nGet a
632
+ (" " , " " , UP _ bcs1) <- nGetUP a
633
+ (" " , " " , UP _ bcs2) <- nGetUP a
633
634
liftIO $ length (bcs1 <> bcs2) `shouldBe` length conns
634
- (" " , " " , UP _ acs1) <- nGet b
635
- (" " , " " , UP _ acs2) <- nGet b
635
+ (" " , " " , UP _ acs1) <- nGetUP b
636
+ (" " , " " , UP _ acs2) <- nGetUP b
636
637
liftIO $ length (acs1 <> acs2) `shouldBe` length conns
637
638
liftIO $ threadDelay 1500000
638
639
forM_ conns $ \ (aliceId, bobId) -> do
0 commit comments