add test for separate notify_push redis

This commit is contained in:
Robin Appelman 2025-08-07 17:12:37 +02:00
commit 9ada18d5a6
2 changed files with 30 additions and 0 deletions

View file

@ -108,6 +108,19 @@ fn test_parse_redis_socket() {
);
}
#[test]
fn test_parse_notify_push_redis() {
let config = config_from_file("tests/configs/notify_push_redis.php");
assert_debug_equal(
RedisConfig::Single(parse_redis("redis+unix:///redis1")),
config.redis,
);
assert_debug_equal(
Some(RedisConfig::Single(parse_redis("redis+unix:///redis2"))),
config.notify_push_redis,
);
}
#[test]
fn test_parse_redis_tls() {
let config = config_from_file("tests/configs/redis_tls.php");