Merge pull request #687 from jojosch/fix-cfg-test

Fix tests
This commit is contained in:
Matthew E 2023-01-04 16:03:48 -05:00 committed by GitHub
commit 1e554acd20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ pub(crate) fn get_setting(name: &str) -> Option<String> {
use {sealed_test::prelude::*, std::fs::write}; use {sealed_test::prelude::*, std::fs::write};
#[test] #[test]
#[sealed_test(env = [("LIBREDDIT_SFW_ONLY", "1")])] #[sealed_test(env = [("LIBREDDIT_SFW_ONLY", "on")])]
fn test_env_var() { fn test_env_var() {
assert!(crate::utils::sfw_only()) assert!(crate::utils::sfw_only())
} }