config: fix SFW test

This commit is contained in:
Johannes Schleifenbaum 2023-01-04 11:12:19 +01:00
parent 0ff92cbfe3
commit dff91da877
No known key found for this signature in database
GPG key ID: 059093B1A278BCD0

View file

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