()
| 7 | |
| 8 | #[tokio::test] |
| 9 | async fn test_load_example_config() -> Result<()> { |
| 10 | let path = PathBuf::from("../config.example.toml"); |
| 11 | let config = CommitBoostConfig::from_file(&path)?; |
| 12 | config.validate().await?; |
| 13 | assert_eq!(config.chain, Chain::Holesky); |
| 14 | assert!(config.relays[0].headers.is_some()); |
| 15 | |
| 16 | Ok(()) |
| 17 | } |
| 18 | |
| 19 | async fn load_happy_config() -> Result<CommitBoostConfig> { |
| 20 | let path = PathBuf::from("./data/configs/pbs.happy.toml"); |