test: Improve block header test assertion

Don't be lazy, check the actual number.
This commit is contained in:
TAMARA LIPOWSKI
2025-09-10 10:45:03 -04:00
committed by Tamara
parent 1d8a0069e2
commit 4aaaa0f3e3

View File

@@ -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);
}
}