test(chain): fix incorrect test case

This commit is contained in:
志宇 2024-04-17 10:44:26 +08:00
parent 72fe65b65f
commit 1269b0610e
No known key found for this signature in database
GPG Key ID: F6345C9837C2BDE8

View File

@ -672,9 +672,9 @@ fn local_chain_apply_header_connected_to() {
let test_cases = [ let test_cases = [
{ {
let header = header_from_prev_blockhash(h!("A")); let header = header_from_prev_blockhash(h!("_"));
let hash = header.block_hash(); let hash = header.block_hash();
let height = 2; let height = 1;
let connected_to = BlockId { height, hash }; let connected_to = BlockId { height, hash };
TestCase { TestCase {
name: "connected_to_self_header_applied_to_self", name: "connected_to_self_header_applied_to_self",