From b094fbcabdc964cdcb31a133f89b7108d54435c8 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Sun, 22 Jan 2023 11:10:21 -0600 Subject: [PATCH] fix: integration tests working --- tests/common/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/common/mod.rs b/tests/common/mod.rs index c3db66e..ccec864 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -36,9 +36,9 @@ pub fn start_relay() -> Result { settings.database.min_conn = 4; settings.database.max_conn = 8; 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. - let _ = start_server(settings, shutdown_rx); + let _ = start_server(&settings, shutdown_rx); }); // how do we know the relay has finished starting up? Ok(Relay {