test names
This commit is contained in:
parent
421c70820c
commit
952a298638
@ -324,7 +324,7 @@ impl TestNet {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn full_sync_two_peers() {
|
||||
fn chain_two_peers() {
|
||||
::env_logger::init().ok();
|
||||
let mut net = TestNet::new(3);
|
||||
net.peer_mut(1).chain.add_blocks(1000, false);
|
||||
@ -335,7 +335,7 @@ fn full_sync_two_peers() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn status_after_sync() {
|
||||
fn chain_status_after_sync() {
|
||||
::env_logger::init().ok();
|
||||
let mut net = TestNet::new(3);
|
||||
net.peer_mut(1).chain.add_blocks(1000, false);
|
||||
@ -346,7 +346,7 @@ fn status_after_sync() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn full_sync_takes_few_steps() {
|
||||
fn chain_takes_few_steps() {
|
||||
let mut net = TestNet::new(3);
|
||||
net.peer_mut(1).chain.add_blocks(100, false);
|
||||
net.peer_mut(2).chain.add_blocks(100, false);
|
||||
@ -355,7 +355,7 @@ fn full_sync_takes_few_steps() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn full_sync_empty_blocks() {
|
||||
fn chain_empty_blocks() {
|
||||
::env_logger::init().ok();
|
||||
let mut net = TestNet::new(3);
|
||||
for n in 0..200 {
|
||||
@ -368,7 +368,7 @@ fn full_sync_empty_blocks() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn forked_sync() {
|
||||
fn chain_forged() {
|
||||
::env_logger::init().ok();
|
||||
let mut net = TestNet::new(3);
|
||||
net.peer_mut(0).chain.add_blocks(300, false);
|
||||
@ -388,7 +388,7 @@ fn forked_sync() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn chain_sync_restart() {
|
||||
fn chain_restart() {
|
||||
let mut net = TestNet::new(3);
|
||||
net.peer_mut(1).chain.add_blocks(1000, false);
|
||||
net.peer_mut(2).chain.add_blocks(1000, false);
|
||||
@ -404,7 +404,7 @@ fn chain_sync_restart() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn chain_sync_status() {
|
||||
fn chain_status_empty() {
|
||||
let net = TestNet::new(2);
|
||||
assert_eq!(net.peer(0).sync.status().state, SyncState::NotSynced);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user