From 4aaaa0f3e3dc187e481c1edc413ac037450b36a4 Mon Sep 17 00:00:00 2001 From: TAMARA LIPOWSKI Date: Wed, 10 Sep 2025 10:45:03 -0400 Subject: [PATCH] test: Improve block header test assertion Don't be lazy, check the actual number. --- protocol-testing/src/rpc.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/protocol-testing/src/rpc.rs b/protocol-testing/src/rpc.rs index 7041636..07b6c88 100644 --- a/protocol-testing/src/rpc.rs +++ b/protocol-testing/src/rpc.rs @@ -129,7 +129,7 @@ mod tests { } #[tokio::test] - async fn get_block_header_test() { + async fn get_block_header() { let eth_rpc_url = env::var("RPC_URL").expect("Missing RPC_URL in environment"); let rpc_provider = RPCProvider::new(eth_rpc_url); @@ -142,8 +142,6 @@ mod tests { // Verify that we got a block with the correct number assert_eq!(block_number, block_header.header.number); - - // Verify that the timestamp is non-zero - assert!(block_header.header.timestamp > 0); + assert_eq!(block_header.header.timestamp, 1741393115); } }