Skip to content

Commit

Permalink
Fix test_var
Browse files Browse the repository at this point in the history
This test was failing due to the recent change in imports.
The test intends to call `dotenvy::var` rather than `std::env::var`.
  • Loading branch information
allan2 committed Mar 15, 2024
1 parent dccd343 commit 174f682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotenv/tests/test-var.rs
Expand Up @@ -7,7 +7,7 @@ use std::{env, error};
fn test_var() -> Result<(), Box<dyn error::Error>> {
let dir = make_test_dotenv()?;

assert_eq!(env::var("TESTKEY")?, "test_val");
assert_eq!(dotenvy::var("TESTKEY")?, "test_val");

env::set_current_dir(dir.path().parent().unwrap())?;
dir.close()?;
Expand Down

0 comments on commit 174f682

Please sign in to comment.