Skip to content

Commit 771ea58

Browse files
committed
Attempt to fix stuck test on 32bit Windows.
1 parent 9f2ad3b commit 771ea58

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/testdatagram.nim

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@
99
import strutils, net, unittest
1010
import ../asyncdispatch2
1111

12-
const
13-
TestsCount = 10000
14-
ClientsCount = 100
15-
MessagesCount = 100
12+
when sizeof(int) == 8:
13+
const
14+
TestsCount = 10000
15+
ClientsCount = 100
16+
MessagesCount = 100
17+
elif sizeof(int) == 4:
18+
const
19+
TestsCount = 2000
20+
ClientsCount = 20
21+
MessagesCount = 20
1622

1723
proc client1(transp: DatagramTransport,
1824
raddr: TransportAddress): Future[void] {.async.} =

0 commit comments

Comments
 (0)