mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 14:00:31 +08:00
The value of `RAD_SOCKET` influences the outcome of `cargo test`. Users that set this environment variable to, e.g. point `rad` at a socket at a custom location, were surprised that execution of tests would interact with their node. Split `Home::socket` into two functions. `Home::socket_default` is "pure" and only dependent on the path represented by `Home`. On the other hand, `Home::socket_from_env` interprets the environment. Most users will want to use `Home::socket_from_env`.