aboutsummaryrefslogtreecommitdiff
path: root/test/test-tcp-write-queue-order.c
Commit message (Collapse)AuthorAge
* test: switch to new-style ASSERT_EQ macros (#4159)Pleuvens2023-10-06
| | | | | | | Switch from old-style ASSERT macro to new-style ASSERT_EQ,... macros. Using new-style macros makes it easier to debug test failures Fixes: https://github.com/libuv/libuv/issues/2974
* test: silence more valgrind warnings (#3917)Trevor Norris2023-03-12
| | | | | | | | | | Pass the loop to MAKE_VALGRIND_HAPPY() so it's explicit on which loop needs to be cleaned up. Since it asserts on uv_loop_close(), need to remove a couple of those that were being done before the call. Cleanup where loop was assigned, so the entire test either uses loop or uv_default_loop(). Not both. Also take care of any reqs that may have been left uncleaned.
* test: increase connection timeout to 1 secondJohn Barboza2018-03-31
| | | | | | | | | The previous timeout of 1 millisecond could lead to intermittent failures. Increase it to 1 second to be on the safe side. PR-URL: https://github.com/libuv/libuv/pull/1776 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* test: fix flaky tcp-write-queue-orderSantiago Gimeno2017-05-17
| | | | | | | | | | | | | | | | | Delay the timer start to be sure all handles are created when `timer_cb` is executed. In some cases this was not the case causing the following error: ``` not ok 51 - tcp_write_queue_order exit code 134 Output from process `tcp_write_queue_order`: lt-run-tests: src/unix/core.c:166: uv_close: Assertion `0' failed. ``` PR-URL: https://github.com/libuv/libuv/pull/1338 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Andrius Bentkus <andrius.bentkus@gmail.com>
* unix,win: make on_alloc_cb failures more resilientSaúl Ibarra Corretgé2016-08-17
| | | | | | | Treat both the base being NULL or the length being 0 as ENOBUFS. PR-URL: https://github.com/libuv/libuv/pull/997 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
* test: set a big send buffer size for tcp_write_queue_orderAndrius Bentkus2016-04-21
| | | | | | | | | | We set the maximum buffer size of the client socket to a specific value so unreasonable OS settings won't trigger assert failures. Fixes: https://github.com/libuv/libuv/issues/764 Refs: https://github.com/libuv/libuv/pull/767 PR-URL: https://github.com/libuv/libuv/pull/768 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
* test: use less requests on tcp-write-queue-orderSaúl Ibarra Corretgé2014-09-04
| | | | Makes the test reliably pass on Windows, otherwise the runtime aborts.
* windows: use UV_ECANCELED for aborted TCP writesSaúl Ibarra Corretgé2014-08-01
| | | | For consistency with Unix
* unix: guarantee write queue cb execution order in streamsAndrius Bentkus2014-07-18
The problem was that the canceled write callbacks were being called before the already written callbacks, even though they were queued after them.