Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
radicle: Prevent `RAD_SOCKET` from polluting tests
Merged lorenz opened 1 month ago

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.

lorenz opened with revision 92374aa0 on base d9915d27 +57 -25 1 month ago

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.

lorenz pushed revision 2 a08ee7e4 on base 9fda8c6d +57 -25 1 month ago

Rebase

fintohaps pushed revision 3 50281ddb on base 22b2871f +57 -25 28 days ago

REVIEW

See commmits

lorenz pushed revision 4 b77e9b41 on base 22b2871f +57 -25 21 days ago

Squash in review. I could not reproduce the test failure.

lorenz pushed revision 5 007a49c4 on base a2de55cb +57 -25 21 days ago

Rebase

lorenz merged revision 007a49c4 at 80c1bba7 21 days ago