fix: integration tests working

This commit is contained in:
Greg Heartsfield 2023-01-22 11:10:21 -06:00
parent 4121c872bc
commit b094fbcabd

View File

@ -36,9 +36,9 @@ pub fn start_relay() -> Result<Relay> {
settings.database.min_conn = 4; settings.database.min_conn = 4;
settings.database.max_conn = 8; settings.database.max_conn = 8;
let (shutdown_tx, shutdown_rx): (MpscSender<()>, MpscReceiver<()>) = syncmpsc::channel(); let (shutdown_tx, shutdown_rx): (MpscSender<()>, MpscReceiver<()>) = syncmpsc::channel();
let handle = thread::spawn(|| { let handle = thread::spawn(move || {
// server will block the thread it is run on. // server will block the thread it is run on.
let _ = start_server(settings, shutdown_rx); let _ = start_server(&settings, shutdown_rx);
}); });
// how do we know the relay has finished starting up? // how do we know the relay has finished starting up?
Ok(Relay { Ok(Relay {