Nim/tests/async
PMunch 2565d3d102 Fix issue with long wait for passed timer [bugfix] (#12221)
* Fix issue with long wait for passed timer [bugfix]

This fixes a small issue where a timer that had been completed while
code executed would still wait for more events before being considered
completed. This would in some scenarios incur a 500ms delay to the
completion of a timer.

* Refactor logic into

* Add test case based on original issue

* Use longer timeouts to be more lenient in checking

* Revert to short timeouts, but widen the accepted range

* Widen accepted range further, it is meant to check for a 500ms delay after all

* Increase poll timeout to make it easier to detect mistakes
2019-09-22 07:24:14 +02:00
..
hello.txt fixes #7347, asyncfile.getFileSize (#7354) 2018-03-17 15:21:22 +00:00
t3075.nim Skip nested procedures in .async. macro 2018-09-22 17:30:17 +02:00
t6846.nim Adds test case for #6846. (#8729) 2018-08-23 20:35:22 +02:00
t7192.nim lots of small changes 2018-12-11 21:23:22 +01:00
t7758.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
t8982.nim complete future only once in or (fixes #8982) (#9632) 2018-11-09 22:45:17 +00:00
t9201.nim asyncmacro: add nnkSym support for getName() (#9204) 2018-10-09 15:53:13 +02:00
t12221.nim Fix issue with long wait for passed timer [bugfix] (#12221) 2019-09-22 07:24:14 +02:00
tacceptcloserace.nim Move checkCloseError to nativesockets 2017-02-07 16:45:59 +07:00
tasync_forward.nim Async macro fixes (#5739) 2017-05-16 22:09:19 +02:00
tasync_gcsafe.nim Fixes #5738 (#6059) 2017-07-15 08:50:41 +02:00
tasync_gcunsafe.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tasync_in_seq_constr.nim Extended tasync_in_seq_constr test 2018-05-09 22:25:27 +03:00
tasync_misc.nim WIP: disallow 'nil' for strings and seqs 2018-08-13 11:41:33 +02:00
tasync_traceback.nim int128 on firstOrd, lastOrd and lengthOrd (#11701) 2019-08-07 15:53:16 +02:00
tasyncall.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tasyncawait.nim ABI fixes for OSX/BSD; fixes #6860 (#11666) 2019-07-06 13:00:29 +02:00
tasyncclosestall.nim [bugfix] Fixes async IO operations stalling even after socket is closed. (#11232) 2019-06-12 17:07:05 +02:00
tasyncconnect.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tasyncdial.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tasyncdiscard.nim Removed tests with asyncio. 2016-09-07 12:19:06 +03:00
tasyncexceptions.nim lots of small changes 2018-12-11 21:23:22 +01:00
tasyncfile.nim megatest can be executed 2018-12-11 21:23:21 +01:00
tasyncfilewrite.nim Fix defer not not-working at top level (#10191) 2019-01-07 00:51:17 +01:00
tasyncrecursion.nim lots of small changes 2018-12-11 21:23:22 +01:00
tasyncRecvLine.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tasyncsend4757.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tasyncssl.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tasynctry.nim C++: make async tests green on Windows 2018-12-21 22:03:41 +01:00
tawaitsemantics.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tcallbacks.nim keep the order of the callbacks 2018-11-07 15:22:02 +01:00
tfuturestream.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tfuturevar.nim make run the default action of a test in tester 2018-11-23 11:58:28 +01:00
tgeneric_async.nim Fix some usages of typedesc in async procs 2018-04-13 13:31:55 +03:00
tgenericasync.nim fixes #4856 2016-10-20 15:20:27 +02:00
tioselectors.nim asyndispatch: removed deprecated setEvent proc 2019-09-21 06:43:37 +02:00
tioselectors.nim.cfg Forgot about newlines at the end 2016-06-23 23:16:00 +03:00
tjsandnativeasync.nim Unify async macro and futures for js and native targets 2018-01-05 16:40:51 +02:00
tlambda.nim make more tests green 2018-04-30 02:52:58 +02:00
tmultisync.nim Implements {.multisync.} pragma for async and sync proc combos. 2016-09-18 18:15:20 +02:00
tnestedpfuturetypeparam.nim Fixes async tests. 2014-09-09 01:17:07 +01:00
tnewasyncudp.nim ABI fixes for OSX/BSD; fixes #6860 (#11666) 2019-07-06 13:00:29 +02:00
tnimcall_to_closure.nim fixes async regression 2016-01-11 11:11:44 +01:00
tpendingcheck.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tpolltimeouts.nim Fixes #4262. 2016-09-17 13:22:04 +02:00
treturn_await.nim fixes #4371 2016-07-08 10:34:12 +02:00
ttemplateinasync.nim Fix regression w/ templates defined in async proc 2018-10-03 18:25:25 +02:00
tupcoming_async.nim asyndispatch: removed deprecated setEvent proc 2019-09-21 06:43:37 +02:00
twinasyncrw.nim Remove long deprecated stuff (#10332) 2019-01-18 07:18:32 +01:00