Attempt to fix stuck test on 32bit Windows.

This commit is contained in:
cheatfate 2018-07-31 13:01:51 +03:00
parent d5b887f3d8
commit 2e1f45a472
1 changed files with 10 additions and 4 deletions

View File

@ -9,10 +9,16 @@
import strutils, net, unittest import strutils, net, unittest
import ../asyncdispatch2 import ../asyncdispatch2
const when sizeof(int) == 8:
TestsCount = 10000 const
ClientsCount = 100 TestsCount = 10000
MessagesCount = 100 ClientsCount = 100
MessagesCount = 100
elif sizeof(int) == 4:
const
TestsCount = 2000
ClientsCount = 20
MessagesCount = 20
proc client1(transp: DatagramTransport, proc client1(transp: DatagramTransport,
raddr: TransportAddress): Future[void] {.async.} = raddr: TransportAddress): Future[void] {.async.} =