From a0e30b551cd6d0d77f005db14d443b808997ea57 Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Tue, 20 Oct 2015 09:04:45 +0200 Subject: [PATCH] test: fix fs_event_watch_file_currentdir flakiness In FreeBSD 10.2 the test sometimes times out because the "touch file" timer fires before the "watch file" event has been registered in the kqueue. Increasing the timeout value seems to fix the issue. PR-URL: https://github.com/libuv/libuv/pull/581 Reviewed-By: Ben Noordhuis --- test/test-fs-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-fs-event.c b/test/test-fs-event.c index a0908ce5..725103b7 100644 --- a/test/test-fs-event.c +++ b/test/test-fs-event.c @@ -487,7 +487,7 @@ TEST_IMPL(fs_event_watch_file_current_dir) { r = uv_timer_init(loop, &timer); ASSERT(r == 0); - r = uv_timer_start(&timer, timer_cb_touch, 1, 0); + r = uv_timer_start(&timer, timer_cb_touch, 10, 0); ASSERT(r == 0); ASSERT(timer_cb_touch_called == 0);