mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-10-31 13:42:44 +00:00
better fix
This commit is contained in:
1 parent
010540462b
commit
7d0d968c79
1 file changed
+4
-2
@@ -332,8 +332,10 @@ testNtfTokenServerRestartReverify t apns = do
|
||||
runRight_ $ do
|
||||
verification <- ntfData .-> "verification"
|
||||
nonce <- C.unsafeCbNonce <$> ntfData .-> "nonce"
|
||||
Left (BROKER _ _) <- tryE $ verifyNtfToken a tkn nonce verification
|
||||
pure ()
|
||||
tryE (verifyNtfToken a tkn nonce verification) >>= \case
|
||||
Left (BROKER _ (NETWORK _)) -> pure ()
|
||||
Left (BROKER _ TIMEOUT) -> pure ()
|
||||
r -> liftIO $ expectationFailure $ "unexpected verification result: " <> show r
|
||||
threadDelay 1500000
|
||||
withAgent 2 agentCfg initAgentServers testDB $ \a' ->
|
||||
-- server stopped before token is verified, so now the attempt to verify it will return AUTH error but re-register token,
|
||||
|
||||
Reference in new issue
Block a user