diff --git a/tests/test_u_async_comprehensive.c b/tests/test_u_async_comprehensive.c index dd4ec79b8..107a8bc3c 100644 --- a/tests/test_u_async_comprehensive.c +++ b/tests/test_u_async_comprehensive.c @@ -246,7 +246,10 @@ static void test_immediate_timeouts(void) { /* Immediate timeouts should fire during next poll */ ASSERT_EQ(ctx.callback_count, 0, "Callbacks fired too early"); - uasync_poll(ua, 1); /* Minimal poll */ + /* Note: Library processes only one timeout per poll, so we need multiple polls */ + for (int i = 0; i < 5; i++) { + uasync_poll(ua, 1); /* Minimal poll */ + } ASSERT_EQ(ctx.callback_count, ctx.expected_count, "Immediate timeouts didn't fire correctly");