From 2e1f45a47209843c2e785ee4ddf69eed67addb2a Mon Sep 17 00:00:00 2001 From: cheatfate Date: Tue, 31 Jul 2018 13:01:51 +0300 Subject: [PATCH] Attempt to fix stuck test on 32bit Windows. --- tests/testdatagram.nim | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/testdatagram.nim b/tests/testdatagram.nim index 07d28d22..487718a7 100644 --- a/tests/testdatagram.nim +++ b/tests/testdatagram.nim @@ -9,10 +9,16 @@ import strutils, net, unittest import ../asyncdispatch2 -const - TestsCount = 10000 - ClientsCount = 100 - MessagesCount = 100 +when sizeof(int) == 8: + const + TestsCount = 10000 + ClientsCount = 100 + MessagesCount = 100 +elif sizeof(int) == 4: + const + TestsCount = 2000 + ClientsCount = 20 + MessagesCount = 20 proc client1(transp: DatagramTransport, raddr: TransportAddress): Future[void] {.async.} =