Comments (1)
@Spanfile env var storage is essentially shared mutable state. Cargo's test framework runs tests in parallel by default. When you mix the two this is expected behavior.
You have two options
-
unparallelize tests with
cargo test -- --test-threads=1
-
use
from_iter
to test. You can find an example here
from envy.
Related Issues (20)
- Serde flatten HOT 12
- should now be using stable rustfmt in ci
- Support newtype structs HOT 1
- Unable to Deserialize Enum from String HOT 3
- Rename a field to a word consists of capitals only HOT 3
- Continue parsing for more missing required values HOT 4
- Empty environment variable is deserialized to a non-empty vector
- rename_all attribute does not work HOT 1
- Add "separator" to parse nested structs HOT 2
- Map deserialization syntax? HOT 3
- Does not work correctly with serde's deny_unknown_fields
- Can't handle capitalised rename HOT 1
- Fallback to .env file like dotenv in Node HOT 1
- how can i override config by .env and .env.dev .env.prod HOT 3
- add `fn to_vec` for easily printing config values in any simple format HOT 1
- Proposal: improve error descriptions (capitalize variables and respect prefix) HOT 1
- Failing to read env field HOT 1
- #[serde(rename = "")] not supported
- Is envy unmaintained? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from envy.