]> Untitled Git - bdk/commitdiff
test(chain): fix incorrect test case
author志宇 <hello@evanlinjin.me>
Wed, 17 Apr 2024 02:44:26 +0000 (10:44 +0800)
committer志宇 <hello@evanlinjin.me>
Wed, 17 Apr 2024 02:45:19 +0000 (10:45 +0800)
crates/chain/tests/test_local_chain.rs

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