Fixed default origin in settings and chain tests.
This commit is contained in:
@@ -994,6 +994,6 @@ pub mod tests {
|
||||
let settings = Settings::default();
|
||||
let mut chain = Chain::new(&settings, "./tests/blockchain.db");
|
||||
chain.check_chain(u64::MAX);
|
||||
assert_eq!(chain.get_height(), 214);
|
||||
assert_eq!(chain.get_height(), 2);
|
||||
}
|
||||
}
|
||||
@@ -89,6 +89,7 @@ mod tests {
|
||||
use std::convert::TryInto;
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
pub fn test_hash() {
|
||||
let id = b"example.com";
|
||||
let key = b"some_key";
|
||||
@@ -108,6 +109,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn test_hash_is_good() {
|
||||
let hash = vec!(0u8,0u8,0u8,255,255,255,255,255);
|
||||
let bytes: [u8; 8] = hash[..8].try_into().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user