fix: Use variable to catch fast NMT state transitions#436
Open
PaulVerhoeckx wants to merge 1 commit intoros-industrial:melodic-develfrom
Open
fix: Use variable to catch fast NMT state transitions#436PaulVerhoeckx wants to merge 1 commit intoros-industrial:melodic-develfrom
PaulVerhoeckx wants to merge 1 commit intoros-industrial:melodic-develfrom
Conversation
Author
|
@ipa-mdl, does the failing test require effort from my side, or could it be a flaky test? I can't reproduce the failing test locally. |
Member
|
@PaulRuvu: I am not sure yet.. your patch seems to change the timing in some cases, but it might be flaw in the test case as well. |
Member
|
I will restart the job to see, if the error is sporadic. <?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="1" failures="1" disabled="0" errors="0" timestamp="2021-06-09T17:08:46" time="2.033" name="AllTests">
<testsuite name="TestNode" tests="1" failures="1" disabled="0" errors="0" time="2.033">
<testcase name="testInitandShutdown" status="run" time="2.033" classname="TestNode">
<failure message="/root/target_ws/src/ros_canopen/canopen_master/test/test_node.cpp:49
Value of: status.bounded<canopen::LayerStatus::Ok>()
 Actual: false
Expected: true" type=""><![CDATA[/root/target_ws/src/ros_canopen/canopen_master/test/test_node.cpp:49
Value of: status.bounded<canopen::LayerStatus::Ok>()
Actual: false
Expected: true]]></failure>
</testcase>
</testsuite>
</testsuites> |
Author
@ipa-mdl, can we conclude it was sporadic? |
Author
|
@ipa-mdl, friendly ping;) |
Author
|
@ipa-mdl, can this be merged? |
Author
|
Friendly ping statistics for @ipa-mdl: |
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.
Solves #435, by storing the desired state in a variable (
wait_for_state_). This waywait_for()can cope with fast NMT state transitions.