working tests including warmup

This commit is contained in:
NikVolf
2016-04-14 20:43:14 +03:00
parent 4d527e152c
commit 1b2ef60bbe
4 changed files with 6 additions and 11 deletions

View File

@@ -72,7 +72,7 @@ mod tests {
#[test]
fn can_init() {
let url = "ipc:///tmp/test-parity-hypervisor-10";
let url = "ipc:///tmp/test-parity-hypervisor-10.ipc";
let hypervisor = Hypervisor::with_url(url);
assert_eq!(false, hypervisor.modules_ready());
@@ -80,7 +80,7 @@ mod tests {
#[test]
fn can_wait_for_startup() {
let url = "ipc:///tmp/test-parity-hypervisor-20";
let url = "ipc:///tmp/test-parity-hypervisor-20.ipc";
let test_module_id = 8080u64;
let hypervisor_ready = Arc::new(AtomicBool::new(false));
@@ -90,6 +90,7 @@ mod tests {
while !hypervisor_ready.load(Ordering::Relaxed) { }
let client = nanoipc::init_client::<HypervisorServiceClient<_>>(url).unwrap();
client.handshake().unwrap();
client.module_ready(test_module_id);
});