mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-29 22:50:14 +00:00
delays
This commit is contained in:
@@ -35,8 +35,8 @@ danProfile = Profile {displayName = "dan", fullName = "Daniel"}
|
||||
chatTests :: Spec
|
||||
chatTests =
|
||||
describe "server stress test" $
|
||||
-- fit "should stress server with many chats and messages" testStressServer
|
||||
fit "server stress test" testStressServerConnectOnly
|
||||
fit "should stress server with many chats and messages" testStressServer
|
||||
-- fit "server stress test" testStressServerConnectOnly
|
||||
|
||||
testStressServerConnectOnly :: IO ()
|
||||
testStressServerConnectOnly = do
|
||||
@@ -138,7 +138,7 @@ testStressServer =
|
||||
when (k `mod` 100 == 0) $ do
|
||||
print $ show i <> " - +200"
|
||||
atomically $ modifyTVar sentTVar (+ 200)
|
||||
-- threadDelay 500
|
||||
threadDelay 500000
|
||||
loop i alice bob sentTVar $ k + 1
|
||||
|
||||
startFileTransfer :: TestCC -> TestCC -> IO ()
|
||||
|
||||
Reference in New Issue
Block a user