From 2277ddc7ced4d94cde47a26e52cbbede0a10818f Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 20 Apr 2024 09:37:17 +0000 Subject: [PATCH] x --- src/test_utils.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test_utils.rs b/src/test_utils.rs index 00e3e47840..80d9883586 100644 --- a/src/test_utils.rs +++ b/src/test_utils.rs @@ -343,7 +343,9 @@ impl TestContext { let mut context_names = CONTEXT_NAMES.write().unwrap(); context_names.insert(id, name); } - let ctx = Context::new(&dbfile, id, Events::new(), StockStrings::new()) + let events = Events::new(); + let evtracker_receiver = events.get_emitter(); + let ctx = Context::new(&dbfile, id, events, StockStrings::new()) .await .expect("failed to create context"); @@ -354,8 +356,6 @@ impl TestContext { log_sink.subscribe(ctx.get_event_emitter()); }; - let evtracker_receiver = ctx.get_event_emitter(); - ctx.set_config(Config::SkipStartMessages, Some("1")) .await .unwrap();