Skip to content

Commit

Permalink
ref(redis): use assert in the tests to check bool: fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
olksdr committed Aug 15, 2022
1 parent d8da94f commit 6eb322e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions relay-config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2089,7 +2089,7 @@ processing:
match redis {
RedisConfig::SingleWithOpts { server, options } => {
assert_eq!(options.max_connections, 42);
assert_eq!(options.test_on_check_out, false);
assert!(!options.test_on_check_out);
assert_eq!(server, "redis://127.0.0.1:6379");
}
e => panic!("Expected RedisConfig::SingleWithOpts but got {:?}", e),
Expand All @@ -2116,7 +2116,7 @@ processing:
RedisConfig::SingleWithOpts { options, .. } => {
// check if all the defaults are correctly set
assert_eq!(options.max_connections, 24);
assert_eq!(options.test_on_check_out, false);
assert!(!options.test_on_check_out);
}
e => panic!("Expected RedisConfig::SingleWithOpts but got {:?}", e),
}
Expand Down

0 comments on commit 6eb322e

Please sign in to comment.