From 2f83613023e36997450befe0ef3d813653968643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 21 Aug 2014 23:32:14 +0200 Subject: [PATCH] test: fix watcher_cross_stop on Windows All send callbacks are not necessarily called on the same loop iteration as the data is received. --- test/test-watcher-cross-stop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-watcher-cross-stop.c b/test/test-watcher-cross-stop.c index bf765cb00..910ed0fb6 100644 --- a/test/test-watcher-cross-stop.c +++ b/test/test-watcher-cross-stop.c @@ -92,10 +92,10 @@ TEST_IMPL(watcher_cross_stop) { uv_close((uv_handle_t*) &sockets[i], close_cb); ASSERT(recv_cb_called > 0); - ASSERT(ARRAY_SIZE(sockets) == send_cb_called); uv_run(loop, UV_RUN_DEFAULT); + ASSERT(ARRAY_SIZE(sockets) == send_cb_called); ASSERT(ARRAY_SIZE(sockets) == close_cb_called); MAKE_VALGRIND_HAPPY();