Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
test: don't assume unref'd timer cb runs
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Apr 18, 2012
1 parent 57ee146 commit 6c2a2aa
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/test-loop-handles.c
Expand Up @@ -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++;
}


Expand Down Expand Up @@ -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;
}

0 comments on commit 6c2a2aa

Please sign in to comment.