Skip to content

Conversation

@intgr
Copy link
Owner

@intgr intgr commented Jan 10, 2026

env-lock:

  • Restores old environment after the test ends.
  • Locks access to environment variables.

Environment access during modification on Unixes is inherently racy: https://doc.rust-lang.org/std/env/fn.set_var.html

This still doesn't protect other tests that may read environment variables, but it's good enough for tests.

@intgr intgr enabled auto-merge (squash) January 10, 2026 18:13
@intgr intgr merged commit dd4ae10 into main Jan 10, 2026
1 check passed
@intgr intgr deleted the tests-serialize-env-access branch January 10, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants