Skip to content

Commit 6eb322e

Browse files
committed
ref(redis): use assert in the tests to check bool: fixing lint
1 parent d8da94f commit 6eb322e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

relay-config/src/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2089,7 +2089,7 @@ processing:
20892089
match redis {
20902090
RedisConfig::SingleWithOpts { server, options } => {
20912091
assert_eq!(options.max_connections, 42);
2092-
assert_eq!(options.test_on_check_out, false);
2092+
assert!(!options.test_on_check_out);
20932093
assert_eq!(server, "redis://127.0.0.1:6379");
20942094
}
20952095
e => panic!("Expected RedisConfig::SingleWithOpts but got {:?}", e),
@@ -2116,7 +2116,7 @@ processing:
21162116
RedisConfig::SingleWithOpts { options, .. } => {
21172117
// check if all the defaults are correctly set
21182118
assert_eq!(options.max_connections, 24);
2119-
assert_eq!(options.test_on_check_out, false);
2119+
assert!(!options.test_on_check_out);
21202120
}
21212121
e => panic!("Expected RedisConfig::SingleWithOpts but got {:?}", e),
21222122
}

0 commit comments

Comments
 (0)