mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-03-12 09:26:29 +00:00
fix: tests
This commit is contained in:
parent
1d7837e700
commit
0126a917c7
1 changed files with 21 additions and 3 deletions
|
@ -155,7 +155,13 @@ Uptime = 0h 2m 4s
|
||||||
|
|
||||||
// It only gets checked if we're `Syncing`.
|
// It only gets checked if we're `Syncing`.
|
||||||
process.lock().unwrap().state = ProcessState::Syncing;
|
process.lock().unwrap().state = ProcessState::Syncing;
|
||||||
PubP2poolApi::update_from_output(&public, &output_parse, &output_pub, elapsed, &process);
|
PubP2poolApi::update_from_output(
|
||||||
|
&mut public.lock().unwrap(),
|
||||||
|
&output_parse,
|
||||||
|
&output_pub,
|
||||||
|
elapsed,
|
||||||
|
&mut process.lock().unwrap(),
|
||||||
|
);
|
||||||
println!("{:#?}", process);
|
println!("{:#?}", process);
|
||||||
assert!(process.lock().unwrap().state == ProcessState::Alive);
|
assert!(process.lock().unwrap().state == ProcessState::Alive);
|
||||||
}
|
}
|
||||||
|
@ -185,7 +191,13 @@ Uptime = 0h 2m 4s
|
||||||
|
|
||||||
// It only gets checked if we're `Syncing`.
|
// It only gets checked if we're `Syncing`.
|
||||||
process.lock().unwrap().state = ProcessState::Syncing;
|
process.lock().unwrap().state = ProcessState::Syncing;
|
||||||
PubP2poolApi::update_from_output(&public, &output_parse, &output_pub, elapsed, &process);
|
PubP2poolApi::update_from_output(
|
||||||
|
&mut public.lock().unwrap(),
|
||||||
|
&output_parse,
|
||||||
|
&output_pub,
|
||||||
|
elapsed,
|
||||||
|
&mut process.lock().unwrap(),
|
||||||
|
);
|
||||||
println!("{:#?}", process);
|
println!("{:#?}", process);
|
||||||
assert!(process.lock().unwrap().state == ProcessState::Syncing); // still syncing
|
assert!(process.lock().unwrap().state == ProcessState::Syncing); // still syncing
|
||||||
}
|
}
|
||||||
|
@ -217,7 +229,13 @@ Uptime = 0h 2m 4s
|
||||||
|
|
||||||
// It only gets checked if we're `Syncing`.
|
// It only gets checked if we're `Syncing`.
|
||||||
process.lock().unwrap().state = ProcessState::Syncing;
|
process.lock().unwrap().state = ProcessState::Syncing;
|
||||||
PubP2poolApi::update_from_output(&public, &output_parse, &output_pub, elapsed, &process);
|
PubP2poolApi::update_from_output(
|
||||||
|
&mut public.lock().unwrap(),
|
||||||
|
&output_parse,
|
||||||
|
&output_pub,
|
||||||
|
elapsed,
|
||||||
|
&mut process.lock().unwrap(),
|
||||||
|
);
|
||||||
println!("{:#?}", process);
|
println!("{:#?}", process);
|
||||||
assert!(process.lock().unwrap().state == ProcessState::Alive);
|
assert!(process.lock().unwrap().state == ProcessState::Alive);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue