[RTDE client] Test reconnect#433
Merged
urfeex merged 5 commits intoUniversalRobots:masterfrom Feb 11, 2026
Merged
Conversation
Before, it was tied to port 30004. However, it might be good to attach it to another port, e.g. to do local testing with a custom server.
The integration test uses the fake RTDEServer
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #433 +/- ##
==========================================
+ Coverage 74.35% 75.00% +0.65%
==========================================
Files 103 102 -1
Lines 5131 5117 -14
Branches 545 544 -1
==========================================
+ Hits 3815 3838 +23
+ Misses 1034 994 -40
- Partials 282 285 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an integration test for reconnecting to the RTDE server. For this, a fake RTDEServer is added that can be stopped and restarted inside the tests easier than managing a URSim instance.
The fake server doesn't have full functionality which is why it lives inside the test repository and is not part of the client library shared library target.
I've added a refactoring to merge two existing
splitStringsfunctions along the way before adding a third one.