test: don't assume unref'd timer cb runs
This commit is contained in:
parent
57ee146985
commit
6c2a2aa250
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user