rclnodejs has no support for spin once (that I'm aware of) like in rclcpp and rclpy. In #561 I had to resort to using setTimeout instead in the unit test to wait for the event loop to finish once. At a minimum, spin once should help improve unit tests within rclnodejs and make them more reliable.
rclnodejs has no support for spin once (that I'm aware of) like in rclcpp and rclpy. In #561 I had to resort to using setTimeout instead in the unit test to wait for the event loop to finish once. At a minimum, spin once should help improve unit tests within rclnodejs and make them more reliable.