another test
This commit is contained in:
parent
0e51a7ca2e
commit
5d3751ea88
@ -302,7 +302,16 @@ mod tests {
|
|||||||
use super::Web3RpcConfig;
|
use super::Web3RpcConfig;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn expected_defaults() {
|
fn expected_app_defaults() {
|
||||||
|
let a: AppConfig = serde_json::from_str("{}").unwrap();
|
||||||
|
|
||||||
|
let b: AppConfig = Default::default();
|
||||||
|
|
||||||
|
assert_eq!(a, b);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn expected_rpc_defaults() {
|
||||||
let a: Web3RpcConfig = serde_json::from_str("{}").unwrap();
|
let a: Web3RpcConfig = serde_json::from_str("{}").unwrap();
|
||||||
|
|
||||||
assert_eq!(a.soft_limit, 1);
|
assert_eq!(a.soft_limit, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user