Fix 32bit windows tests.
This commit is contained in:
parent
2e1f45a472
commit
293f993bed
|
@ -17,12 +17,21 @@ else:
|
||||||
const
|
const
|
||||||
ConstantMessage = "SOMEDATA"
|
ConstantMessage = "SOMEDATA"
|
||||||
BigMessagePattern = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
BigMessagePattern = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||||
|
FilesTestName = "tests/teststream.nim"
|
||||||
|
when sizeof(int) == 8:
|
||||||
|
const
|
||||||
BigMessageCount = 1000
|
BigMessageCount = 1000
|
||||||
ClientsCount = 100
|
ClientsCount = 100
|
||||||
MessagesCount = 100
|
MessagesCount = 100
|
||||||
MessageSize = 20
|
MessageSize = 20
|
||||||
FilesCount = 50
|
FilesCount = 50
|
||||||
FilesTestName = "tests/teststream.nim"
|
elif sizeof(int) == 4:
|
||||||
|
const
|
||||||
|
BigMessageCount = 200
|
||||||
|
ClientsCount = 20
|
||||||
|
MessagesCount = 20
|
||||||
|
MessageSize = 20
|
||||||
|
FilesCount = 10
|
||||||
|
|
||||||
proc serveClient1(server: StreamServer, transp: StreamTransport) {.async.} =
|
proc serveClient1(server: StreamServer, transp: StreamTransport) {.async.} =
|
||||||
while not transp.atEof():
|
while not transp.atEof():
|
||||||
|
|
Loading…
Reference in New Issue