Skip to content

Commit

Permalink
tryage to make error handling cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
GueLaKais committed Oct 2, 2024
1 parent 552e2d4 commit 02539ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rclrs/src/node/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,10 @@ mod tests {
.and_then(|val| val.parse::<usize>().map_err(|e| format!("{}", e)))
.map(|id| if id != 99 { 99 } else { 98 })
.expect("Error setting domain_id");
let context: Context =
Context::new_with_options([], InitOptions::new().with_domain_id(Some(domain_id)))
.unwrap_or_else(|error| panic!("Failed to create context: {}", error));

let node_name = "test_publisher_names_and_types";
let node = Node::new(&context, node_name).unwrap();
// Test that the graph has no publishers
Expand Down

0 comments on commit 02539ff

Please sign in to comment.