From 6c2a2aa2509a9ea48a05354e4b445b8d7e605723 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 18 Apr 2012 02:23:14 +0200 Subject: [PATCH] test: don't assume unref'd timer cb runs --- test/test-loop-handles.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/test-loop-handles.c b/test/test-loop-handles.c index 425dcf63..866445da 100644 --- a/test/test-loop-handles.c +++ b/test/test-loop-handles.c @@ -106,14 +106,10 @@ static int idle_2_close_cb_called = 0; static int idle_2_cb_started = 0; static int idle_2_is_active = 0; -static int timer_cb_called = 0; - static void timer_cb(uv_timer_t* handle, int status) { ASSERT(handle == &timer_handle); ASSERT(status == 0); - - timer_cb_called++; } @@ -353,7 +349,5 @@ TEST_IMPL(loop_handles) { ASSERT(idle_2_close_cb_called == idle_2_cb_started); ASSERT(idle_2_is_active == 0); - ASSERT(timer_cb_called > 0); - return 0; }