pub mod common;
use common::msgs::example_msg::msg::Num;
use safe_drive::context::Context;
use std::error::Error;
#[test]
fn test_publish() -> Result<(), Box<dyn Error + Sync + Send + 'static>> {
let ctx = Context::new()?;
let node = ctx
.create_node("test_publish_node", None, Default::default())
.unwrap();
let publisher = node.create_publisher::<Num>("test_publish", Default::default())?;
let msg = Num { num: 100 };
publisher.send(&msg)?;
Ok(())
}