Răsfoiți Sursa

chore: Remove test that lives with another crate (#9162)

The test checks logic from solana-shred-version and has been moved to
that crate separately. So, it can be deleted from here
steviez 16 ore în urmă
părinte
comite
605d89dcc1
1 a modificat fișierele cu 0 adăugiri și 23 ștergeri
  1. 0 23
      ledger/src/shred.rs

+ 0 - 23
ledger/src/shred.rs

@@ -1064,29 +1064,6 @@ mod tests {
         }
     }
 
-    #[test]
-    fn test_version_from_hash() {
-        let hash = [
-            0xa5u8, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5,
-            0x5a, 0x5a, 0xa5, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5, 0x5a, 0x5a,
-            0xa5, 0xa5, 0x5a, 0x5a,
-        ];
-        let version = solana_shred_version::version_from_hash(&Hash::new_from_array(hash));
-        assert_eq!(version, 1);
-        let hash = [
-            0xa5u8, 0xa5, 0x5a, 0x5a, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-            0, 0, 0, 0, 0, 0, 0, 0,
-        ];
-        let version = solana_shred_version::version_from_hash(&Hash::new_from_array(hash));
-        assert_eq!(version, 0xffff);
-        let hash = [
-            0xa5u8, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-            0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-        ];
-        let version = solana_shred_version::version_from_hash(&Hash::new_from_array(hash));
-        assert_eq!(version, 0x5a5b);
-    }
-
     #[test]
     fn test_invalid_parent_offset() {
         let keypair = Keypair::new();