test: add test case for miot event

This commit is contained in:
topsworld
2024-12-13 16:51:09 +08:00
committed by Lucien Hsiao
parent adb915d60c
commit 419d76e1ad
6 changed files with 88 additions and 1 deletions

View File

@ -240,6 +240,9 @@ class MIoTEventLoop:
if fd is None:
raise MIoTEvError('invalid params')
if not self._poll_fd:
raise MIoTEvError('event loop not started')
fd_key: str = str(id(fd))
fd_handler = self._fd_handlers.get(fd_key, None)