MCPcopy Create free account
hub / github.com/Commit-Boost/commit-boost-client / test_validate_missing_rpc_url

Function test_validate_missing_rpc_url

tests/tests/config.rs:157–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155
156#[tokio::test]
157async fn test_validate_missing_rpc_url() -> Result<()> {
158 let mut config = load_happy_config().await?;
159 config.pbs.pbs_config.extra_validation_enabled = true;
160 config.pbs.pbs_config.rpc_url = None;
161
162 let result = config.validate().await;
163 assert!(result.is_err());
164 assert!(
165 result
166 .unwrap_err()
167 .to_string()
168 .contains("rpc_url is required if extra_validation_enabled is true")
169 );
170 Ok(())
171}
172
173#[tokio::test]
174async fn test_validate_config_with_no_relays() -> Result<()> {

Callers

nothing calls this directly

Calls 2

load_happy_configFunction · 0.85
validateMethod · 0.45

Tested by

no test coverage detected