MCPcopy Create free account
hub / github.com/base/base / rejects_wrong_generated_schedule

Function rejects_wrong_generated_schedule

acceptance/src/config.rs:845–862  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
pathMethod · 0.45

Tested by

no test coverage detected