From 293f993bed71035e8daee300831b1bedac12ed29 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Tue, 31 Jul 2018 13:11:47 +0300 Subject: [PATCH] Fix 32bit windows tests. --- tests/teststream.nim | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/tests/teststream.nim b/tests/teststream.nim index 5018cb3e..caa0ce52 100644 --- a/tests/teststream.nim +++ b/tests/teststream.nim @@ -17,12 +17,21 @@ else: const ConstantMessage = "SOMEDATA" BigMessagePattern = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - BigMessageCount = 1000 - ClientsCount = 100 - MessagesCount = 100 - MessageSize = 20 - FilesCount = 50 FilesTestName = "tests/teststream.nim" +when sizeof(int) == 8: + const + BigMessageCount = 1000 + ClientsCount = 100 + MessagesCount = 100 + MessageSize = 20 + FilesCount = 50 +elif sizeof(int) == 4: + const + BigMessageCount = 200 + ClientsCount = 20 + MessagesCount = 20 + MessageSize = 20 + FilesCount = 10 proc serveClient1(server: StreamServer, transp: StreamTransport) {.async.} = while not transp.atEof():