Skip to content

Commit

Permalink
Require env file for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tascord committed Apr 8, 2024
1 parent 50d9679 commit ffcdad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub mod test {

// Load .env file if DEVID and KEY are not set
if !std::env::vars().any(|(k, _)| k == "DEVID" || k == "KEY") {
dotenv().ok();
dotenv().ok().expect("Failed to find .env");
}

Client::new(
Expand Down

0 comments on commit ffcdad3

Please sign in to comment.