This commit is contained in:
James Bell 2024-07-16 16:28:50 -04:00
parent 9324e1710e
commit 2f2e712fd0

View file

@ -59,14 +59,19 @@ where
.workers(1)
.disable_signals()
.run();
tx.send((system, local_addr, server)).expect("Failed to send Server to TestServer");
tx.send((system, local_addr, server))
.expect("Failed to send Server to TestServer");
Ok(())
})
});
let (system, addr, server) = rx.recv().unwrap();
TestServer { addr, server, system }
TestServer {
addr,
server,
system,
}
}
/// Start new server with server builder
@ -82,7 +87,8 @@ where
sys.run(|| {
let server = factory(super::build()).workers(1).disable_signals().run();
tx.send((system, server)).expect("Failed to send Server to TestServer");
tx.send((system, server))
.expect("Failed to send Server to TestServer");
Ok(())
})
});