fix: correct ASSERT_EQ to ASSERT_NE in admittance controller load test (backport #2264)#2340
fix: correct ASSERT_EQ to ASSERT_NE in admittance controller load test (backport #2264)#2340mergify[bot] wants to merge 2 commits into
Conversation
|
Cherry-pick of b822e35 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
|
Hi @christophfroehlich The backport is currently failing on humble and it looks like there are differences in the test setup, such as missing Would you like me to adapt the test for humble compatibility, or will you handle it? |
|
@SouriRishik thank you for your help! I had a quick look in other controllers on humble, there are only a few using yaml files during the load-tests. I might have missed something |
|
You can just open a PR targeting the |
|
okay! I'll do that soon |
|
Hi @christophfroehlich, I found out something while trying to fix this issue
Would you prefer adapting the test to use a compatible hardware setup available in humble (e.g., |
|
if possible choose one of the existing |
Fixes #1258
Problem
The
test_load_controllertest inadmittance_controllerwas usingASSERT_EQto check againstnullptr, which means the test was asserting that the controller fails to load. Since the controller loads successfully with the params file provided, the test was always passing, even though it was checking the wrong condition.Fix
Changed
ASSERT_EQtoASSERT_NEso the test correctly asserts that the controller loaded successfully (i.e. the result is not nullptr).Note:
range_sensor_broadcasteralready has the correctASSERT_NEin its load test and does not need changes.Is this user-facing behavior change?
no
Did you use Generative AI?
no
This is an automatic backport of pull request #2264 done by Mergify.