Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix ModbusSerialServer setup so handler is called correctly. #1113

Merged
merged 1 commit into from
Oct 14, 2022
Merged

Conversation

jabjoe
Copy link
Contributor

@jabjoe jabjoe commented Oct 14, 2022

I was hit by ModbusSerialServer being broken by the previous commit to async_io.py.

There is no test covering ModbusSerialServer which is probably why this got through. One could be added using pty.openpty.

@janiversen
Copy link
Collaborator

Actually there are tests for ModbusSerialServer in test_examples.py

Copy link
Collaborator

@janiversen janiversen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good.

@janiversen
Copy link
Collaborator

Thanks for the patch, looking forward to see more work from you.

@janiversen janiversen merged commit e924e71 into pymodbus-dev:dev Oct 14, 2022
@jabjoe
Copy link
Contributor Author

jabjoe commented Oct 14, 2022

Actually there are tests for ModbusSerialServer in test_examples.py

Ah, I see it now. run_async_server can take "serial" and use StartAsyncSerialServer then. Sorry. I was looking at test_server_asyncio.py which does the others but not StartAsyncSerialServer.

@janiversen
Copy link
Collaborator

you also have run_sync_server, so we should have it all covered. Apart from that your patch was correct and are merged, thanks again.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants