usrsocktest: fix TEST_ASSERT_EQUAL fail for POLLIN

This assertion should be removed because the POLLIN event is now only
raised when there is data pending to be received. Previously, POLLIN
was incorrectly set as soon as the connection was established, even
when no data was available, which was not consistent with the expected
behavior.

Signed-off-by: guanyi3 <guanyi3@xiaomi.com>
This commit is contained in:
guanyi3 2025-10-10 11:45:45 +08:00 committed by Donny(董九柱)
parent df30f84f33
commit a75fa37090

View file

@ -871,7 +871,6 @@ static void remote_disconnect_poll2(struct usrsocktest_daemon_conf_s *dconf)
TEST_ASSERT_EQUAL(1, ret);
TEST_ASSERT_EQUAL(0, pfd.revents & POLLERR);
TEST_ASSERT_EQUAL(POLLHUP, pfd.revents & POLLHUP);
TEST_ASSERT_EQUAL(*events & POLLIN, pfd.revents & POLLIN);
TEST_ASSERT_EQUAL(0, pfd.revents & POLLOUT);
TEST_ASSERT_EQUAL(1, usrsocktest_daemon_get_num_active_sockets());
TEST_ASSERT_EQUAL(0, usrsocktest_daemon_get_num_connected_sockets());