aurae-runtime / aurae

Distributed systems runtime daemon written in Rust.
https://aurae.io
Apache License 2.0
1.84k stars 91 forks source link

Fix: Correctly create a child `CellName` in `CellName::to_child` #331

Closed future-highway closed 1 year ago

future-highway commented 1 year ago

When nesting cells multiple levels, the child CellName was not correct. For example, if you had "grandparent-cell" and "grandparent-cell/parent-cell/child-cell", the result of to_child would be "grandparent-cell/grandparent-cell". This fixes that so that we get "grandparent-cell/parent-cell".

I also added a make command that uses cargo-watch to make developing with tests more convenient. Example usage...

make auraed-test-watch name=cells::cell_service::cells::cell_name::tests::test_to_child

Then every time cargo-watch detects changes to the source files, it will rerun that specific test automatically. To install cargo-watch run cargo install cargo-watch.