-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
misc DDS changes #12467
misc DDS changes #12467
Conversation
# Conflicts: # third-party/realdds/py/pyrealdds.cpp
# Conflicts: # third-party/realdds/py/pyrealdds.cpp
|
||
with test.closure( 'from string: generic format' ): | ||
test.check_false( dds.guid.from_string( '' ) ) | ||
test.check_equal( repr( dds.guid.from_string( '001122334455667788990011.100' ) ), '001122334455667788990011.100' ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't want to test here stuff that you have tested in the previous test, like hex letters or invalid characters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The difference is the format - chances are the same rules apply. I thought this is a good start and didn't want to spend any more time on it.
dds.message.flexible( message ).write_to( writer ) | ||
i( f'Sent {message} on {topic_path}' ) | ||
if args.ack: | ||
if not writer.wait_for_acks( dds.time( 5. ) ): # seconds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we take the timeout from the settings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but really I see no need. We can improve the script as we go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Separating out from DFU PR... commits are mostly self-explanatory, but: