Fix old test that was skipped#2440
Conversation
Greptile SummaryThis PR revives a previously skipped integration test for LCM publishing of
Confidence Score: 5/5The change is self-contained to a single test file and does not touch production code; the reworked test correctly manages LCM lifecycle and asserts on decoded message contents. The fixture properly stops the LCM thread in its finally block, eliminating the thread-leak the autouse monitor_threads fixture would have caught. Assertions are correct: both publish calls use the right Transform objects and the expected child_frame_id lists match the constructed messages. No production code is changed. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant F as lcm fixture
participant T as test_publish_transforms
participant L as LCM instance
participant C as CallbackCollector
participant LT as LCM handler thread
F->>L: "LCM(url=lcm_url)"
F->>L: lcm.start()
F-->>T: yield lcm
T->>C: CallbackCollector(2)
T->>L: lcm.subscribe(topic, collector)
T->>L: lcm.publish(TFMessage(world_to_base, base_to_arm))
T->>L: lcm.publish(TFMessage(world_to_base, arm_to_gripper))
LT-->>C: callback(TFMessage, topic) [msg 1]
LT-->>C: callback(TFMessage, topic) [msg 2]
T->>C: collector.wait()
T->>T: "assert len(results)==2"
T->>T: assert child_frame_ids msg1
T->>T: assert child_frame_ids msg2
F->>L: lcm.stop() [finally]
Reviews (2): Last reviewed commit: "[autofix.ci] apply automated fixes" | Re-trigger Greptile |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
No description provided.