| 843 | |
| 844 | #[test] |
| 845 | fn rejects_wrong_generated_schedule() { |
| 846 | let config: ScenarioConfig = toml::from_str(MINIMAL_SCENARIO).unwrap(); |
| 847 | let temp = tempfile::NamedTempFile::new().unwrap(); |
| 848 | fs::write( |
| 849 | temp.path(), |
| 850 | r#"{ |
| 851 | "l1_chain_id": 1337, |
| 852 | "l2_chain_id": 84538453, |
| 853 | "genesis": { "l2_time": 100 }, |
| 854 | "base": { "azul": 141, "beryl": 142, "cobalt": 144, "denim": 150 } |
| 855 | }"#, |
| 856 | ) |
| 857 | .unwrap(); |
| 858 | assert_eq!( |
| 859 | config.verified_forks(temp.path()).unwrap_err().to_string(), |
| 860 | "generated azul timestamp Some(141) does not match expected Some(140)" |
| 861 | ); |
| 862 | } |
| 863 | |
| 864 | #[test] |
| 865 | fn verifies_post_denim_slot_offset() { |