summary refs log tree commit diff stats
path: root/tests/async/tasyncawait.nim
Commit message (Collapse)AuthorAgeFilesLines
* fix #14320 (tasyncawait.nim is recently very flaky) + avoid hardcoding ↵Timothee Cour2020-05-131-19/+8
| | | | | | | service ports everywhere + flakyAssert (#14327) * hotfix #14320 tasyncawait.nim is recently very flaky * fix #14327 * add flakyAssert
* faster CIs (#13803)Miran2020-03-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ttables: smaller table, 5x speedup * thavlak: less iterations, less loops; 30% speedup * tasyncclosestall: shorter timeout; 35% speedup * gcleak4: less iterations, 2x speedup * ttimes: remove deprecated stuff * tdangerisrelease: remove cpp backend, 3x speedup * tfrexp1: smaller range, 2x speedup * trtree: fix warnings, less iterations, 6x speedup * tasyncawait_cyclebreaker: smaller swarm size; 2x speedup * trealloc: smaller number of iterations; 10x speedup * towned_binary_tree: less iterations, 4x speedup * tclosure: remove unused code, less iterations; 2x speedup * twaitany: less durations; 1.4x speedup * tasync_misc: less iterations, 2x speedup * t8535: smaller sleep, 1.5x speedup * tmanyjoin: smaller sleep, 2x speedup * t12221: shorter sleeps, removed two slower tests; 1.6x speedup * tfuturestream: smaller sleep; 1.5x speedup * growobjcrash: less iterations; 2x speedup * ttryrecv: smaller sleep; 1.5x speedup * treusetvar: less threads; 2x speedup * delete tthreadanalysis2, basically a duplicate of tthreadanalysis * t7758: less iterations, 1.5x speedup * tasyncawait: smaller swarm, less messages; 1.5x speedup * tjsandnativeasync: smaller sleep, 1.5x speedup * tpendingcheck: smaller sleep, 1.5x speedup * remove rodfiles test category * move tseq from its own category to 'collections' category * remove unneeded tests and helpers from 'assert' category * stdlib: merge tbitops2 into tbitops * remove 'trepr2' from 'stdlib' cat * merge 'tstreams' into one file * remove 'tinefficient_const_table' from 'ccbugs' cat * merge 'tcollections_to_string' into 'tcollections' * tblocking_channel: smaller sleep, small speedup * tconvexhull: less iterartions; 1.2x speedup * merge 'tdeepcopy2' into 'tdeepcopy' * merge 'tdisjoint_slice2' into 'tdisjoint_slice1' * tmissing_deepcopy: smaller sequence * tsendtwice: smaller arrays; 5x speedup * remove 'tindexerrorformatbounds' * disable multimethod tests * remove 'gc:none' and 'refc' without 'd:useRealtimeGC' from gc tests * koch.nim: bootstrap just with '-d:release', no need for 'csource' * add github workflow for documentation * testament: no need for 8 sub-second decimals
* ABI fixes for OSX/BSD; fixes #6860 (#11666)Andreas Rumpf2019-07-061-1/+1
|
* Provide access to getsockname()/getpeername()Federico Ceratto2019-02-171-0/+4
| | | | Port of #3323 with added tests
* Remove deprecated modules (asyncio, sockets, ftpclient) (#10401)Miran2019-01-221-6/+8
|
* require errormsg to be specified before file.Arne Döring2018-12-111-1/+0
|
* Convert *_family fields to cushortLemonBoy2018-09-191-4/+1
| | | | Fixes #9008
* make tests greenAndreas Rumpf2018-05-051-6/+6
|
* Define ports as uint16s to fix #3484Josep Sanjuas2016-03-271-1/+1
|
* Rename rawsockets module to nativesocketsAdam Strzelecki2015-10-031-3/+3
| | | | | | | | | | This change was done to avoid confusion with TCP/IP raw sockets. Native sockets module represents handling native system low level socket API in general and is not just limited anyhow to TCP/IP raw sockets. A stub lib/deprecated/pure/rawsockets.nim module has been added as compatibility layer for old code using rawsockets, so this change will not break existing code.
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-1/+1
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* Improved tasyncawait test.Dominik Picheta2014-12-261-3/+1
|
* More empty stmt fixes.Dominik Picheta2014-09-091-9/+2
|
* Fixes async tests.Dominik Picheta2014-09-091-5/+5
|
* further adaptationsAraq2014-08-291-1/+1
|
* Fix broken async tests.Dominik Picheta2014-07-131-3/+3
|
* Rename asyncdispatch.close to asyncdispatch.closeSocket.Dominik Picheta2014-05-231-3/+3
|
* Tester now appreciates the test target. Modified 'cmd' in specs.Dominik Picheta2014-04-161-1/+0
|
* Move asyncdispatch tests to asyncnet.Dominik Picheta2014-03-261-2/+0
|
* Moved the global dispatcher to asyncdispatch.Dominik Picheta2014-03-231-23/+22
|
* Fixes tasyncawait and the net module on Linux.Dominik Picheta2014-03-231-1/+1
|
* Copied most blocking socket operations to the net module.Dominik Picheta2014-03-221-3/+14
|
* PFuture[void] now works.Dominik Picheta2014-03-151-10/+12
| | | | | Return types can also be completely ommitted. PFuture[void] will then be implicitly deduced.
* File descriptors are now removed from fds list explicitly in close().Dominik Picheta2014-03-141-3/+3
| | | | Fixes tasyncawait on linux.
* Fixed tasyncawait on Windows.Dominik Picheta2014-03-121-2/+2
| | | | | | Implicit registration of an fd now only occurs when a new socket is created (in socket() or accept()). This makes the implementation much simpler, changes to the linux version will follow.
* tasyncawait now works on Linux.Dominik Picheta2014-03-111-8/+1
| | | | | | Reworked detection of a file descriptor being closed with epoll (in the case of sockets it is when the remote host disconnects). Ensured that events are only updated when they change.
* Fixes to asyncio2 on Linux.Dominik Picheta2014-03-091-1/+9
|
* Implemented selector support for asyncio2.Dominik Picheta2014-02-221-2/+2
|
* Fix processing of 'await' with a nnkCall.Dominik Picheta2014-02-161-2/+1
| | | | | Specifically, ``discard readMessages(disp, await disp.accept(server))`` works now, i.e. using 'await' as one of the params to a proc call.
* Added await test.Dominik Picheta2014-02-161-0/+65